-
Notifications
You must be signed in to change notification settings - Fork 6
Compiling the code
This is not a standalone code, and requires you to have Chombo and GRChombo compiled and working before compiling GRDzhadzha! (This uses the tools of both Chombo and GRChombo and it doesn't duplicate them, so you do need to download and compile both codes beforehand). Head over to the GRChombo wiki for detailed instructions on Compiling Chombo and GRChombo.
Once you have done that, come back here and do the following:
Clone the GRDzhadzha repository locally using
git clone https://github.com/GRChombo/GRDzhadzha.git
If you plan to make significant changes to the code, we recommend you create your own fork, so that you can store your updates to the code. Please do not create branches in the GRDzhadzha repository unless you have contacted us about an update.
You should have already set the shell environment variable CHOMBO_HOME
as the path to the Chombo library using a command like:
export CHOMBO_HOME=/path/to/Chombo/lib/
and now similarly you need to set the variable GRCHOMBO_SOURCE
as the path to the GRChombo Source:
export GRCHOMBO_SOURCE=path/to/GRChombo/Source/
This command can also be added to the .bashrc
or .profile
file in your home directory so it is set automatically each time you login.
Go to Examples/BoostedBHComplexScalar
and run
make all
This should compile without errors. See GRChombo Compilation FAQ for advice on common errors.
If this example works, go to the base GRDzhadzha directory and run
make test -j 8
This will make the tests in parallel using 8 ranks. To run the tests use
make run
which is often easier to read if not done in parallel. To make all the examples use
make examples -j 8
You can also compile and run the tests, and compile the examples in one go with the command
make all
but then you have to do it all in parallel or all in serial.
If you subsequently change compiler options, use the command
make clean
or
make realclean
To start the compilation from a clean slate or change the XTRACONFIG
variable in the Chombo Make.defs.local
.
Copyright GRChombo 2023. Contact us for further details.