diff --git a/dartwrf/create_obsseq.py b/dartwrf/create_obsseq.py index 1789a9ec0038b847f3f0fd4410ed19af69a93893..67f846515dbf8d05e2b72a4425a2f37ecb599c5e 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 acc8a8e4a3ba45f1e10bafaffc6ae18b099a6b3c..0c656e67b5d294fbfe05f2ddb0f0e5903bea82bf 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 e7fa7596baa6d177fb1d6094c128db1495cfde28..2581088ad347c4cf8c4349b87b81ba342e0e85ce 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