Skip to content

Commit

Permalink
fix typo and add sfincs
Browse files Browse the repository at this point in the history
  • Loading branch information
SergioLangaritaBenitez committed Nov 7, 2024
1 parent eb64575 commit 346223c
Show file tree
Hide file tree
Showing 5 changed files with 31 additions and 10 deletions.
21 changes: 21 additions & 0 deletions DT_flood/workflows/cwl_OSCAR/oscar_services/sfincs-interlink.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
functions:
oscar:
- cluster-id:
name: sfincs-interlink
cpu: '4.0'
memory: 6Gi
image: docker://deltares/sfincs-cpu:sfincs-v2.1.1-Dollerup-Release
script: sfincs_interlink_script.sh
log_level: DEBUG # To avoid supervisor logs in response
interlink_node_name: vega-new-vk
annotations:
slurm-job.vk.io/singularity-options: --no-home --no-mount /exa5
slurm-job.vk.io/singularity-mounts: --bind /ceph/hpc/home/ciangottinid/oscar_home:/tmp
job.vk.io/singularity-mounts: --bind /ceph/hpc/data/st2301-itwin-users/:/interlink/
slurm-job.vk.io/flags: --job-name=test-sfincs --time=02:30:00 --nodes=1
input:
- storage_provider: minio
path: sfincs/in
output:
- storage_provider: minio
path: sfincs/out
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
OUTPUT_FILE="$TMP_OUTPUT_DIR/sfincs_output.tar"
tar -xvf "$INPUT_FILE_PATH" -C /data/
sfincs
tar -cf sfincs_output.tar sfincs_map.nc sfincs_his.nc
mv /data/sfincs_output.tar $OUTPUT_FILE
13 changes: 4 additions & 9 deletions DT_flood/workflows/cwl_OSCAR/oscar_services/sfincs_script.sh
Original file line number Diff line number Diff line change
@@ -1,10 +1,5 @@
FILE_NAME=`basename "$INPUT_FILE_PATH"`
OUTPUT_FILE="$TMP_OUTPUT_DIR/$FILE_NAME.nc"
mkdir -p /model
tar -xvf "$INPUT_FILE_PATH" -C /model/
/app/build/create_binaries/wflow_bundle/bin/wflow_cli /model/wflow_warmup/wflow_sbm.toml
mv /model/wflow_event/instate/instates.nc $OUTPUT_FILE


OUTPUT_FILE="$TMP_OUTPUT_DIR/sfincs_output.tar"
tar -xvf "$INPUT_FILE_PATH" -C /data/
sfincs
sfincs
tar -cf sfincs_output.tar sfincs_map.nc sfincs_his.nc
mv /data/sfincs_output.tar $OUTPUT_FILE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
functions:
oscar:
- oscarr:
- cluster-id:
name: wflow-interlink
cpu: '4.0'
memory: 6Gi
Expand Down

0 comments on commit 346223c

Please sign in to comment.