Skip to content

Commit

Permalink
try podman
Browse files Browse the repository at this point in the history
  • Loading branch information
jonasjucker committed Nov 14, 2024
1 parent 7104055 commit 8801c13
Show file tree
Hide file tree
Showing 3 changed files with 48 additions and 3 deletions.
1 change: 0 additions & 1 deletion VERSION

This file was deleted.

24 changes: 22 additions & 2 deletions jenkins/RemoteExtraction
Original file line number Diff line number Diff line change
Expand Up @@ -38,22 +38,42 @@ pipeline {
sh """
mkdir -p ${WORKSPACE}/extpar
mkdir -p ${WORKSPACE}/icontools
cp namelist ${WORKSPACE}/icontools/namelist
"""
}
}
stage('Generate ICON grid') {
steps {
sh """
cd ${WORKSPACE}/icontools
echo "Generating ICON grid"
podman run -w /work -u 0 -v ${WORKSPACE}/icontools:/work -t icontools /home/dwd/icontools/icongridgen --nml /work/namelist


"""
}
}
stage('Generate external parameters') {
steps {
sh """
cd ${WORKSPACE}/extpar
echo "Generating external parameters"
podman run \
-v /c2sm-data/extpar-input-data:/data \
-v ${WORKSPACE}/icontools:/grid \
-v ${WORKSPACE}/extpar:/work \
extpar-image \
python3 -m extpar.WrapExtpar \
--run_dir /work \
--raw_data_path /data/linked_data \
--no_batch_job \
--host docker \
--input_grid /grid/icon_uzbekistan_DOM01.nc \
--igrid_type 1 \
--iaot_type 1 \
--ilu_type 2 \
--ialb_type 1 \
--account none \
--isoil_type 1 \
--itopo_type 2
"""
}
}
Expand Down
26 changes: 26 additions & 0 deletions namelist
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
&gridgen_nml
centre = 1
subcentre = 2
lspring_dynamics = .false.
maxit = 10000
parent_id = 0,1
basegrid%grid_root = 3
basegrid%grid_level = 5
initial_refinement = .false.
dom(1)%outfile = "icon_uzbekistan"
dom(1)%region_type = 3
dom(1)%center_lon = 63.5
dom(1)%center_lat = 42.16
dom(1)%hwidth_lon = 20.0
dom(1)%hwidth_lat = 20.0
dom(1)%number_of_grid_used = 99
dom(1)%lwrite_parent = .false.
dom(2)%outfile = "icon_uzbekistan"
dom(2)%region_type = 3
dom(2)%center_lon = 63.5
dom(2)%center_lat = 42.16
dom(2)%hwidth_lon = 5.0
dom(2)%hwidth_lat = 5.0
dom(2)%number_of_grid_used = 99
/

0 comments on commit 8801c13

Please sign in to comment.