-
Notifications
You must be signed in to change notification settings - Fork 0
Creating a simulation context
Salvatore Di Girolamo edited this page Oct 24, 2018
·
5 revisions
A simulation context identifies a simulation configuration that can be produced a certain subset of the entire simulation output.
Warning: to load SimFS on Piz Daint you need to:
source /apps/pr/pr04/SimFS/simfs_daint.env
-
To create a COSMO context, you need to create a new directory and copy into it all the INPUT_* files of the simulation you want to virtualize. We will call this directory <ctx_path>.
-
Run the script "/apps/pr/pr04/SimFS/examples/crClim/tools/virtualize_cosmo.sh". This script asks for the following info (all paths must be absolute):
- Context name: name of the context
- Path to the context: put <ctx_path> here
- Path to COSMO executable (including filename)
- Paths to the input/ bc/ restarts/ output/ folders: these are just the paths to the folders, without including folders' names!
- Path to temporary files: this is a scratch space that SimFS uses to create job script and manage conflicting files (optional, default value is $SCRATCH/tmp)
- Path to the COSMO configuration file for SimFS. This is a LUA script containing functions to interface a COSMO simulation. The script uses a template that is instantiated with the info read from the INPUT_* files in <ctx_path>. Leave blank for using the default one.
- COSMO Job template file: this is the template file SimFS uses to restart simulations. Leave blank for using the default one.
-
Index the files: Adding a file to index is not required but it allows SimFS to show it as part of the virtualized view (i.e., simfs <ctx_name> ls).
- To index a file type the following command:
simfs <ctx name> index <file path>
. If the file belongs to the output directory of the context specified with , then the file will be indexed. - Use the script /examples/crClim/tools/cosmo_output.py to list all the files produced by a COSMO simulation. E.g.,
examples/crClim/tools/cosmo_output.py <ctx path> <output dir>
where is the absolute path to the simulation output directory.
- To index a file type the following command: