Skip to content

Commit

Permalink
removing a 1 at the beginning of a line that seems to be a typo, and …
Browse files Browse the repository at this point in the history
…rewriting a few lines of code in diag_manager test test_diag_update_buffer.F90
  • Loading branch information
laurenchilutti committed Jul 26, 2023
1 parent f78a67f commit 405c923
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
4 changes: 3 additions & 1 deletion test_fms/diag_manager/test_diag_manager2.sh
Original file line number Diff line number Diff line change
Expand Up @@ -460,6 +460,7 @@ test_expect_success "Unstructured grid (test $my_test_count)" '
mpirun -n 1 ../test_diag_manager
'

my_test_count=24
# test_diag_manager_time
cat <<_EOF > diag_table
test_diag_manager
Expand All @@ -478,6 +479,7 @@ test_diag_manager
"test_diag_manager_mod", "sst", "sst", "ocn_end%4yr%2mo%2dy%2hr", "all", .true., "none", 2
_EOF

my_test_count=25
rm -f input.nml && touch input.nml
test_expect_success "wildcard filenames (test $my_test_count)" '
mpirun -n 1 ../test_diag_manager_time
Expand All @@ -501,7 +503,7 @@ test_expect_success "diurnal test (test $my_test_count)" '
mpirun -n 1 ../test_diag_manager_time
'
setup_test
my_test_count=`expr $my_test_count + 1`
my_test_count=26
test_expect_success "Test the diag update_buffer (test $my_test_count)" '
mpirun -n 1 ../test_diag_update_buffer
'
Expand Down
8 changes: 4 additions & 4 deletions test_fms/diag_manager/test_diag_update_buffer.F90
Original file line number Diff line number Diff line change
Expand Up @@ -282,12 +282,12 @@ SUBROUTINE init_field_values (field)
DO k = 1, NZ
DO j = 1, NY
DO i = 1, NX
itemp = get_array_index_from_4D(i,j,k,l,NX,NY,NZ)
SELECT TYPE ( field)
TYPE IS (real(kind=r4_kind))
itemp = get_array_index_from_4D(i,j,k,l,NX,NY,NZ)
field(i,j,k,l) = get_array_index_from_4D(i,j,k,l,NX,NY,NZ)
1 TYPE IS (integer(kind=i8_kind))
field(i,j,k,l) = get_array_index_from_4D(i,j,k,l,NX,NY,NZ)
field(i,j,k,l) = real(itemp, kind=r4_kind)
TYPE IS (integer(kind=i8_kind))
field(i,j,k,l) = int(itemp, kind=i8_kind)
END SELECT
END DO
END DO
Expand Down

0 comments on commit 405c923

Please sign in to comment.