Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
SAMSIM3.0
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Deutloff, Jakob
SAMSIM3.0
Commits
25bacff6
Commit
25bacff6
authored
2 years ago
by
JakobDeutloff
Browse files
Options
Downloads
Patches
Plain Diff
Mosaic data removed and configuration guide and README updated.
parent
5ebf4d6b
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
README.md
+30
-26
30 additions, 26 deletions
README.md
with
30 additions
and
26 deletions
README.md
+
30
−
26
View file @
25bacff6
...
@@ -29,23 +29,6 @@ You should be able to either use the executable file to run the model or compile
...
@@ -29,23 +29,6 @@ You should be able to either use the executable file to run the model or compile
If you don't want to complie the model on your own computer, you should be able to use the provided executable (samsim.x).
If you don't want to complie the model on your own computer, you should be able to use the provided executable (samsim.x).
This way, you don't need to have a fortran compiler on your local maschine. You only need to have python installed.
This way, you don't need to have a fortran compiler on your local maschine. You only need to have python installed.
To run the model, you simply have to build a config.json file for the testcase you want to run by running the
respective build_config file with python.
Now you can simply run samsim by running the executable file. Windows user will need to run it from their Linux
sub-system which is activated by typing into the console :
````
bash
bash
````
Now you can run the model from the home directory (samsim3.0) by running the executable. To do this type:
````
bash
./samsim.x
````
After Samsim has finished you can plot the output as described below :)
## Compiling the Model
## Compiling the Model
...
@@ -107,23 +90,44 @@ from the home directory.
...
@@ -107,23 +90,44 @@ from the home directory.
After compiling the model (see above) you can produce different model runs by changing the model configuration in the
After compiling the model (see above) you can produce different model runs by changing the model configuration in the
config.json file and the respective input files which can be found in the input folder.
config.json file and the respective input files which can be found in the input folder.
Four testcases are available for you to start with and explore the behaviour of samsim. To run those testcases, you need
Testcase 1-4 can be produced by simply running the respective config file from Python_files/Code/build_config_files.
to run the respective build_config.py script. Running one of the build_config.py scripts produces a config.json and a
Running one of the build scripts produces a config.json and a
description.txt file which are stored in the folder
description.txt file which are stored in the folder
Run_specifics.
Run_specifics.
Furthermore, it creates the input files for SW, LW, sensitive and latent heatflux, for solid and liquid
Furthermore, it creates the input files for SW, LW, sensitive and latent heatflux, for solid and liquid
precipitation, 2m temperature, surface temperature, bottom temperature, bottom salinity and bottom heatflux.
precipitation, 2m temperature, surface temperature, bottom temperature, bottom salinity and bottom heatflux.
If one of those input variables is not used, it is set to zero.
If one of those input variables is not used, it is set to zero.
To run the model with initial sea-ice profiles, use the build_config_initial_state.py script.
The config.json file for testcase 1 can be produced with the makefile.
Windows user should activate their Linux sub-system to be
able to use the makefile by typing:
````
bash
bash
````
into the console. Now you can use all Linux commands. The config.json file for testcase 1 can be created with the makefile by typing
````
bash
make config.json
````
If you want to run one of the testcases 2-4, you need to run the respective build_config.py file with python
which can simpely be done by typing
````
bash
python3 Python_files/Code/build_config_files/build_config_x.py
````
and replace x with the number of the testcase you want to run.
To run the model with initial sea-ice profiles, run the build_config_initial_state.py script.
If you want to set up your own model run, you need to change the config.json file and the input files accordingly.
If you want to set up your own model run, you need to change the config.json file and the input files accordingly.
For further information on how to use the config files, please have a look at the Configuration Guide in the documentation folder.
For further information on how to use the
build_
config files, please have a look at the Configuration Guide in the documentation folder.
After producing the config.json file and putting the right inputs in the input folder, SAMSIM just need to be run by typing:
After producing the config.json file and putting the right inputs in the input folder, SAMSIM just need
s
to be run by typing:
````
bash
````
bash
./samsim.x
./samsim.x
````
````
This can either be the pre-compiled samsim.x file from the repository or the one you compiled yourself.
### Files you need to run SAMSIM
### Files you need to run SAMSIM
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment