Skip to content

Commit

Permalink
change code bash for ifs
Browse files Browse the repository at this point in the history
  • Loading branch information
LucR31 committed Oct 19, 2023
1 parent f883aca commit 4b7780e
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 2 deletions.
1 change: 1 addition & 0 deletions aiida_flexpart/calculations/flexpart_cosmo.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ def define(cls, spec):
spec.inputs['metadata']['options']['resources'].default = {
'num_machines': 1,
'num_mpiprocs_per_machine': 1,
#'max_wallclock_seconds': 1800
}

spec.input('metadata.options.parser_name', valid_type=str, default='flexpart.cosmo')
Expand Down
7 changes: 7 additions & 0 deletions aiida_flexpart/workflows/multi_dates_workflow.py
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,13 @@ def prepare_meteo_folder(self):
'gribdir': self.inputs.gribdir,
'model': self.inputs.model
})

if node.is_finished_ok:
self.report(f'meteo files ready')
""" return True
else:
self.report('preparing meteo files failed. Terminating workflow.')
return False"""

def run_simulation(self):
"""Run calculations for equation of state."""
Expand Down
4 changes: 2 additions & 2 deletions config/code_bash_ifs.yaml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
---
label: 'bash_ifs'
label: 'check-ifs-data'
description: ''
default_calc_job_plugin: 'core.shells'
filepath_executable: '/users/lfernand/flexpart_processing_chain/scripts/check_ifs_data.bash'
computer: daint-direct
computer: daint-direct-106
prepend_text: |
module load daint-mc
module switch PrgEnv-cray PrgEnv-gnu
Expand Down
File renamed without changes.

0 comments on commit 4b7780e

Please sign in to comment.