Skip to content
Snippets Groups Projects
Commit 7f3949e8 authored by xo30xoqa's avatar xo30xoqa
Browse files

Added script for runtime profiling

closes #38
parent f6e8b026
Branches
Tags
No related merge requests found
TODO.md
docs/planning
*results*/
\ No newline at end of file
*results*/
profile*txt
\ No newline at end of file
......@@ -2,7 +2,7 @@ SHELL = /bin/bash
.PHONY: run test docs release install
run:
# running example simulation
# run an example simulation
if [ -d "example_results" ]; then rm -r example_results; fi
./run.jl -o example_results
src/analysis/analyse_nature.R example_results
......@@ -19,6 +19,11 @@ docs:
sed -i -e "s/\*Last updated:.*/\*Last updated: ${commit}\*/" docs/src/index.md
cd docs; julia builddocs.jl
profile:
# run and profile an example simulation
if [ -d "example_results" ]; then rm -r example_results; fi
./runprofile.jl -o example_results
container:
echo "Not yet implemented (#43)"
......
......@@ -61,6 +61,7 @@ If you are on Linux or MacOS, you can also use `make`:
```
> make run # run a simulation with default values
> make test # run the test suite
> make profile # run and profile a default simulation
> make docs # build the documentation
> make release # create a release
```
......
......@@ -51,8 +51,6 @@ of parameters):
[core]
configfile = "src/parameters.toml" # location of the configuration file
landcovermap = "data/landcover_jena.tif" # location of the landcover map
farmfieldsmap = "data/fields_jena.tif" # location of the field geometry map
outdir = "results" # location and name of the output folder
overwrite = "ask" # overwrite the output directory? (true/false/"ask")
loglevel = "debug" # verbosity level: "debug", "info", "warn"
......@@ -62,6 +60,10 @@ seed = 2 # seed value for the RNG (0 -> random value)
startdate = 2022-01-01
enddate = 2022-12-31
[world]
landcovermap = "data/landcover_jena.tif" # location of the landcover map
farmfieldsmap = "data/fields_jena.tif" # location of the field geometry map
[farm]
farmmodel = "FieldManager" # which version of the farm model to use (not yet implemented)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment