Skip to content

Commit 4b69035

Browse files
authored
Merge branch 'dev/gfdl' into IS_FMAs
2 parents c9ec122 + b240e7e commit 4b69035

File tree

9 files changed

+739
-126
lines changed

9 files changed

+739
-126
lines changed

.testing/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -282,7 +282,7 @@ $(BUILD)/%/MOM6: $(BUILD)/%/Makefile FORCE
282282

283283
# Target codebase should use its own build system
284284
$(BUILD)/target/MOM6: $(BUILD)/target FORCE | $(TARGET_CODEBASE)
285-
$(MAKE) -C $(TARGET_CODEBASE)/.testing build/symmetric/MOM6
285+
$(MAKE) -C $(TARGET_CODEBASE)/.testing BUILD=build build/symmetric/MOM6
286286

287287
$(BUILD)/target: | $(TARGET_CODEBASE)
288288
ln -s $(abspath $(TARGET_CODEBASE))/.testing/build/symmetric $@

config_src/drivers/nuopc_cap/mom_cap.F90

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2371,6 +2371,11 @@ subroutine SetScalarField(field, rc)
23712371
ungriddedLBound=(/1/), ungriddedUBound=(/scalar_field_count/), gridToFieldMap=(/2/), rc=rc)
23722372
if (ChkErr(rc,__LINE__,u_FILE_u)) return
23732373

2374+
! initialize fldptr to zero
2375+
call ESMF_FieldGet(field, farrayPtr=fldptr2d, rc=rc)
2376+
if (ChkErr(rc,__LINE__,u_FILE_u)) return
2377+
fldptr2d(:,:) = 0.0
2378+
23742379
end subroutine SetScalarField
23752380

23762381
end subroutine MOM_RealizeFields

src/core/MOM.F90

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2706,7 +2706,7 @@ subroutine initialize_MOM(Time, Time_init, param_file, dirs, CS, &
27062706
CS%tv%T => CS%T ; CS%tv%S => CS%S
27072707
if (CS%tv%T_is_conT) then
27082708
vd_T = var_desc(name="contemp", units="Celsius", longname="Conservative Temperature", &
2709-
cmor_field_name="thetao", cmor_longname="Sea Water Potential Temperature", &
2709+
cmor_field_name="bigthetao", cmor_longname="Sea Water Conservative Temperature", &
27102710
conversion=US%Q_to_J_kg*CS%tv%C_p)
27112711
else
27122712
vd_T = var_desc(name="temp", units="degC", longname="Potential Temperature", &
@@ -2715,7 +2715,7 @@ subroutine initialize_MOM(Time, Time_init, param_file, dirs, CS, &
27152715
endif
27162716
if (CS%tv%S_is_absS) then
27172717
vd_S = var_desc(name="abssalt", units="g kg-1", longname="Absolute Salinity", &
2718-
cmor_field_name="so", cmor_longname="Sea Water Salinity", &
2718+
cmor_field_name="absso", cmor_longname="Sea Water Absolute Salinity", &
27192719
conversion=0.001*US%S_to_ppt)
27202720
else
27212721
vd_S = var_desc(name="salt", units="psu", longname="Salinity", &

src/ice_shelf/MOM_ice_shelf.F90

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -824,7 +824,7 @@ subroutine shelf_calc_flux(sfc_state_in, fluxes_in, Time, time_step_in, CS)
824824
ISS%dhdt_shelf(i,j) = (ISS%h_shelf(i,j) - ISS%dhdt_shelf(i,j))*Itime_step
825825
enddo; enddo
826826

827-
call IS_dynamics_post_data(time_step, Time, CS%dCS, G)
827+
call IS_dynamics_post_data(time_step, Time, CS%dCS, ISS, G)
828828
endif
829829

830830
if (CS%shelf_mass_is_dynamic) &
@@ -2603,7 +2603,7 @@ subroutine solo_step_ice_shelf(CS, time_interval, nsteps, Time, min_time_step_in
26032603
call process_and_post_scalar_data(CS, vaf0, vaf0_A, vaf0_G, Ifull_time_step, dh_adott, dh_adott*0.0)
26042604
call disable_averaging(CS%diag)
26052605

2606-
call IS_dynamics_post_data(full_time_step, Time, CS%dCS, G)
2606+
call IS_dynamics_post_data(full_time_step, Time, CS%dCS, ISS, G)
26072607
end subroutine solo_step_ice_shelf
26082608

26092609
!> Post_data calls for ice-sheet scalars
@@ -2648,7 +2648,9 @@ subroutine process_and_post_scalar_data(CS, vaf0, vaf0_A, vaf0_G, Itime_step, dh
26482648
endif
26492649
if (CS%id_f_adott > 0 .or. CS%id_f_adot > 0) then !floating only: surface accumulation - surface melt
26502650
call masked_var_grounded(G,CS%dCS,dh_adott,tmp)
2651-
tmp(:,:) = dh_adott(:,:) - tmp(:,:)
2651+
do j=js,je ; do i=is,ie
2652+
tmp(i,j) = dh_adott(i,j) - tmp(i,j)
2653+
enddo; enddo
26522654
call integrate_over_ice_sheet_area(G, ISS, tmp, US%Z_to_m, val)
26532655
if (CS%id_f_adott > 0) call post_scalar_data(CS%id_f_adott,val ,CS%diag)
26542656
if (CS%id_f_adot > 0) call post_scalar_data(CS%id_f_adot ,val*Itime_step,CS%diag)
@@ -2710,7 +2712,9 @@ subroutine process_and_post_scalar_data(CS, vaf0, vaf0_A, vaf0_G, Itime_step, dh
27102712
endif
27112713
if (CS%id_Ant_f_adott > 0 .or. CS%id_Ant_f_adot > 0) then !floating only: surface accumulation - surface melt
27122714
call masked_var_grounded(G,CS%dCS,dh_adott,tmp)
2713-
tmp(:,:) = dh_adott(:,:) - tmp(:,:)
2715+
do j=js,je ; do i=is,ie
2716+
tmp(i,j) = dh_adott(i,j) - tmp(i,j)
2717+
enddo; enddo
27142718
call integrate_over_ice_sheet_area(G, ISS, tmp, US%Z_to_m, val, hemisphere=0)
27152719
if (CS%id_Ant_f_adott > 0) call post_scalar_data(CS%id_Ant_f_adott,val ,CS%diag)
27162720
if (CS%id_Ant_f_adot > 0) call post_scalar_data(CS%id_Ant_f_adot ,val*Itime_step,CS%diag)
@@ -2772,7 +2776,9 @@ subroutine process_and_post_scalar_data(CS, vaf0, vaf0_A, vaf0_G, Itime_step, dh
27722776
endif
27732777
if (CS%id_Gr_f_adott > 0 .or. CS%id_Gr_f_adot > 0) then !floating only: surface accumulation - surface melt
27742778
call masked_var_grounded(G,CS%dCS,dh_adott,tmp)
2775-
tmp(:,:) = dh_adott(:,:) - tmp(:,:)
2779+
do j=js,je ; do i=is,ie
2780+
tmp(i,j) = dh_adott(i,j) - tmp(i,j)
2781+
enddo; enddo
27762782
call integrate_over_ice_sheet_area(G, ISS, tmp, US%Z_to_m, val, hemisphere=1)
27772783
if (CS%id_Gr_f_adott > 0) call post_scalar_data(CS%id_Gr_f_adott,val ,CS%diag)
27782784
if (CS%id_Gr_f_adot > 0) call post_scalar_data(CS%id_Gr_f_adot ,val*Itime_step,CS%diag)

0 commit comments

Comments
 (0)