-
- Downloads
Merge branch 'Parameter-File' into 'master'
First version of main() using a parameter file to get constants. That's pretty big but does not touch the physics, the parallelisation nor MPI. In brief: - Latest version of the parser from @jwillis - More uniform name of functions in the unit module. - Added the ability for the `engine`, `space`, `unit` and `partition` objects to construct themselves from a parsed parameter file. - Added an example yaml file with full documentation. - Added yaml files and run scripts for the Sedov, Sod and uniform examples. - General tidying of the `main()`. - Dropped the dependency on z-lib which we don't use. - Updated the README to reflect the new command-line parameters. - Cleaned-up the `main()` such that the only command-line parameters read in are policies and debugging options. - Added the option to do a 'dry run'. This reads the parameter file, allocates the memory required by the ICs but does not read anything and constructs a space and engine. This allows us to check the validity of a given parameter file. Happy to guide you through the changes if need be. This closes #81. See merge request !140
Showing
- .gitignore 1 addition, 0 deletions.gitignore
- README 22 additions, 4 deletionsREADME
- configure.ac 5 additions, 5 deletionsconfigure.ac
- examples/CosmoVolume/cosmoVolume.yml 48 additions, 0 deletionsexamples/CosmoVolume/cosmoVolume.yml
- examples/CosmoVolume/run.sh 10 additions, 0 deletionsexamples/CosmoVolume/run.sh
- examples/SedovBlast/run.sh 10 additions, 0 deletionsexamples/SedovBlast/run.sh
- examples/SedovBlast/sedov.yml 48 additions, 0 deletionsexamples/SedovBlast/sedov.yml
- examples/SodShock/run.sh 10 additions, 0 deletionsexamples/SodShock/run.sh
- examples/SodShock/sodShock.yml 48 additions, 0 deletionsexamples/SodShock/sodShock.yml
- examples/UniformBox/run.sh 10 additions, 0 deletionsexamples/UniformBox/run.sh
- examples/UniformBox/uniformBox.yml 48 additions, 0 deletionsexamples/UniformBox/uniformBox.yml
- examples/main.c 237 additions, 343 deletionsexamples/main.c
- examples/parameter_example.yml 48 additions, 0 deletionsexamples/parameter_example.yml
- examples/runs.sh 0 additions, 53 deletionsexamples/runs.sh
- src/common_io.c 5 additions, 5 deletionssrc/common_io.c
- src/const.h 0 additions, 5 deletionssrc/const.h
- src/engine.c 44 additions, 40 deletionssrc/engine.c
- src/engine.h 7 additions, 6 deletionssrc/engine.h
- src/parallel_io.c 14 additions, 11 deletionssrc/parallel_io.c
- src/parallel_io.h 1 addition, 1 deletionsrc/parallel_io.h
Loading
Please register or sign in to comment