From d42c1ac3de713b313832a5c803d465042901c903 Mon Sep 17 00:00:00 2001 From: lkugler <lukas.kugler@gmail.com> Date: Wed, 22 Feb 2023 09:59:06 +0100 Subject: [PATCH] . --- dartwrf/create_obsseq.py | 2 +- dartwrf/workflows.py | 8 ++++++-- docs/source/index.rst | 2 +- 3 files changed, 8 insertions(+), 4 deletions(-) diff --git a/dartwrf/create_obsseq.py b/dartwrf/create_obsseq.py index 1789a9e..67f8465 100755 --- a/dartwrf/create_obsseq.py +++ b/dartwrf/create_obsseq.py @@ -16,7 +16,7 @@ def obskind_read(): from DART f90 script """ - definitionfile = cluster.dart_srcdir+'/../../../assimilation_code/modules/observations/obs_kind_mod.f90' + definitionfile = cluster.scriptsdir+'/../config/obs_kind_mod.f90' with open(definitionfile, 'r') as f: kind_def_f = f.readlines() diff --git a/dartwrf/workflows.py b/dartwrf/workflows.py index acc8a8e..0c656e6 100644 --- a/dartwrf/workflows.py +++ b/dartwrf/workflows.py @@ -32,6 +32,11 @@ class WorkFlows(object): self.cluster.slurm_scripts_dir = self.cluster.archivedir+'/slurm-scripts/' print('scripts, which are submitted to SLURM:', self.cluster.slurm_scripts_dir) + # copy obs kind def to config, we will read a table from there + # file needs to exist within package so sphinx can read it + shutil.copy(cluster.dart_srcdir+'/../../../assimilation_code/modules/observations/obs_kind_mod.f90', + cluster.scriptsdir+'/../config/') + # Copy scripts to self.cluster.archivedir folder os.makedirs(self.cluster.archivedir, exist_ok=True) try: @@ -46,8 +51,7 @@ class WorkFlows(object): shutil.copy('config/'+exp_config, self.cluster.scripts_rundir+'/cfg.py') shutil.copy('config/'+server_config, self.cluster.scripts_rundir+'/cluster.py') # whatever server, the config name is always the same! shutil.copy('config/'+server_config, 'config/cluster.py') # whatever server, the config name is always the same! - - + def prepare_WRFrundir(self, init_time): """Create WRF/run directories and wrfinput files """ diff --git a/docs/source/index.rst b/docs/source/index.rst index e7fa759..2581088 100644 --- a/docs/source/index.rst +++ b/docs/source/index.rst @@ -19,7 +19,7 @@ At the command line: .. toctree:: :hidden: - self + Home <self> .. toctree:: :maxdepth: 2 -- GitLab