Skip to content

Commit

Permalink
Get test working on new machine. Why was Oasis accepting termination …
Browse files Browse the repository at this point in the history
…when there were hanging puts? Closes #38
  • Loading branch information
nichannah committed Apr 16, 2020
1 parent 7f98476 commit 84a370b
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 8 deletions.
13 changes: 8 additions & 5 deletions ocean_stub/src/ocean.F90
Original file line number Diff line number Diff line change
Expand Up @@ -78,23 +78,26 @@ program ocean
call coupler%init_end(accessom2%get_total_runtime_in_seconds(), &
accessom2%get_coupling_field_timesteps())

do while (.not. accessom2%run_finished())
cur_runtime_in_seconds = accessom2%get_cur_runtime_in_seconds()

cur_runtime_in_seconds = accessom2%get_cur_runtime_in_seconds()
do
! Get fields from ice
do i=1, size(in_fields)
call coupler%get(in_fields(i), cur_runtime_in_seconds, err)
enddo

! Do work, i.e. use the in_fields and populate the out_fields

call accessom2%progress_date(dt)
if (accessom2%run_finished()) then
exit
endif
cur_runtime_in_seconds = accessom2%get_cur_runtime_in_seconds()

! Send fields to ice
do i=1, size(out_fields)
out_fields(i)%data_array(:, :) = 0.0
call coupler%put(out_fields(i), cur_runtime_in_seconds, err)
enddo

call accessom2%progress_date(dt)
enddo

! Write out restart.
Expand Down
6 changes: 3 additions & 3 deletions tests/copy_test_data.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@
mkdir -p test_data

# Copy over OASIS remap weights
cp /short/public/access-om2/input_rc/common_1deg_jra55/* test_data/
cp /g/data/ik11/inputs/access-om2/input_rc/common_1deg_jra55/* test_data/

# Copy over river runoff remap weights
cp /short/public/access-om2/input_rc/yatm_1deg/rmp_jrar_to_cict_CONSERV.nc test_data/
cp /g/data/ik11/inputs/access-om2/input_rc/yatm_1deg/rmp_jrar_to_cict_CONSERV.nc test_data/

# Copy ice grid and OASIS restarts
cp /short/public/access-om2/input_rc/cice_1deg/* test_data/
cp /g/data/ik11/inputs/access-om2/input_rc/cice_1deg/* test_data/

0 comments on commit 84a370b

Please sign in to comment.