Skip to content

Commit

Permalink
attempt to fix the sporadic crashes of data_override tests
Browse files Browse the repository at this point in the history
  • Loading branch information
uramirez8707 committed Sep 26, 2024
1 parent e0ddce0 commit 4a82959
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 1 deletion.
2 changes: 2 additions & 0 deletions test_fms/data_override/test_data_override2_mono.sh
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ do
test_expect_success "test_data_override with monotonically increasing and decreasing data sets (${KIND})" '
mpirun -n 6 ../test_data_override_ongrid_${KIND}
'
sync
done

rm -rf data_table
Expand Down Expand Up @@ -83,6 +84,7 @@ if [ -z $parser_skip ]; then
test_expect_success "test_data_override with monotonically increasing and decreasing data sets -yaml (${KIND})" '
mpirun -n 6 ../test_data_override_ongrid_${KIND}
'
sync
done
fi

Expand Down
3 changes: 3 additions & 0 deletions test_fms/data_override/test_data_override2_ongrid.sh
Original file line number Diff line number Diff line change
Expand Up @@ -66,18 +66,21 @@ fi
for KIND in r4 r8
do
rm -rf INPUT/*
sync
sed 's/halo_size/2/g' input_base.nml > input.nml
test_expect_success "data_override on grid with 2 halos in x and y (${KIND})" '
mpirun -n 6 ../test_data_override_ongrid_${KIND}
'

rm -rf INPUT/*
sync
sed 's/halo_size/0/g' input_base.nml > input.nml
test_expect_success "data_override on grid with 0 halos in x and y (${KIND})" '
mpirun -n 6 ../test_data_override_ongrid_${KIND}
'

rm -rf INPUT/*
sync
test_expect_success "data_override get_grid_v1 (${KIND})" '
mpirun -n 1 ../test_get_grid_v1_${KIND}
'
Expand Down
2 changes: 1 addition & 1 deletion test_fms/data_override/test_data_override2_scalar.sh
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ rm -rf INPUT/*
test_expect_success "data_override scalar field (${KIND})" '
mpirun -n 6 ../test_data_override_ongrid_${KIND}
'

sync
done
rm -rf INPUT *.nc # remove any leftover files to reduce size

Expand Down
1 change: 1 addition & 0 deletions test_fms/data_override/test_data_override_ensembles.sh
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@ if [ -z $parser_skip ]; then
test_expect_success "test_data_override with two ensembles -yaml (${KIND})" '
mpirun -n 12 ../test_data_override_ongrid_${KIND}
'
sync
done

cat <<_EOF > data_table.yaml
Expand Down
1 change: 1 addition & 0 deletions test_fms/data_override/test_data_override_weights.sh
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ if [ -z $parser_skip ]; then
test_expect_success "test_data_override with and without weight files -yaml (${KIND})" '
mpirun -n 2 ../test_data_override_ongrid_${KIND}
'
sync
done
fi

Expand Down

0 comments on commit 4a82959

Please sign in to comment.