Commit b64735f2 authored by Ignacio Pisso's avatar Ignacio Pisso
Browse files

modified Makefile README

parent 8be99956
......@@ -4,7 +4,17 @@ slfiles:
./loop_on_pathnames.sh
run:
./run_all_sl
clean: this_is_a_run
rm -r options*
clean:
rm -r options* pathnames* output* batch_dry_pathnames_*
archive_dir := archive_$(shell date "+%y-%m-%d_%H%M%S")
archive:
@echo "archive generated files"
mkdir $(archive_dir)
mv options* pathnames* output* stdout* clrun* $(archive_dir)
cleanrun:
rm *.out rm *.err *.sl
logfile := file_$(shell date +%FT%T%Z).log
flush_log:
@echo "==> flush logs to $(logfile)"
echo ‘my_log’ > $(logfile)
echo `wc -l $(logfile)`
flex gen cases
Generates flexpart run cases based on the current default options dir and pathnames file.
(pathanmes can be edited at a later stage to accomodate different winds with the same options IMPLEMENT
)
1)define and generate cases (options, pathnames and output dirs)
2)prepare for run (enforce conditions of existence and define execution files and instructions)
3)run (generate output) depends on system ()
3bis) set reference output
4)read generated output
5)compare to reference
Generates standard flexpart run cases.
The cases are derived from reference options dir and pathnames file (working examples by default from the current repository head /release? decide on the reference FIXME).
(currently focuses on ecmwf winds: pathanmes can be edited at a later stage to accomodate different winds with the same options IMPLEMENT)
files
- define_<runs>: Generates flexpart run cases (groups depending on _<runs>)
- export*: copy define* to a ifferent directory to build the run cases there.
......@@ -22,6 +30,21 @@ input:
(add --force option ENHANCE)
history
1-
1bis-postprocessing: eg change format Legras/Fast or prepare CTBTO XML descriptor
eg
/Users/ignacio/todo/doing/flexpart/2018-05-23/loop_on_ls.sh
2- run
/Users/ignacio/todo/doing/flexpart/2018-04-03/run_generated_tests.sh
/Users/ignacio/todo/doing/flexpart/2018-04-04/run_generated_tests_serial.sh
/Users/ignacio/todo/doing/flexpart/2018-04-04/run_in_njord.sh
3bis-
/Users/ignacio/todo/doing/flexpart/2018-04-04/generate2
4,5- subsequent task
/Users/ignacio/Desktop/flexpart/read_cases/logbook
repo flex_gen_input cloned to ~/repos
how to run
......@@ -64,6 +87,57 @@ the stdout of flexpart is tee'd to stdoutbatch_dry_pathnames*.sl
the output* directory(es) is(are) ready to be read by flex_read
2018-08-22
decouple:
gen_options_*.sh
input: base options directory (preferrably a working one)
output: derived options directories defining the corresponding test or use cases
once options are created, consistent output and patnames are needed
in addition winds need to be available and consistent with a corresponding AVAILABLE file
gen_pathnames_*.sh
input:
- base pathnames (template -- sets wind dirs and available file path)
- set of options (output from gen_options_*.sh) located in the current directory
e.g: gen_pathnames_default.sh creates pathnames and output in local dir from repos default
output: corresponding set of pathnames
gen_cases_*.sh
calls gen_options_*.sh and gen_pathnames_*.sh
input: input from gen_options_*.sh and gen_pathnames_*.sh combined
output:
- output from gen_options_*.sh and gen_pathnames_*.sh combined
- output dirs (in the local directory by default)
gen_runs_*.sh
cretes cases and defines a running string for each case
the running string is part of a file that depends on the system
e.g. can be executed directly in the command line or using a workload manager (LoadLeveler, SLURM, etc.)
run_runs
check_runs
verifies that the runs have finished without errors
example:
generate group 1 (gridded output) of test cases from default options in flexpart local repository
gen_options_group1_gridout.sh
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment