From 016a2cceb58e1e73eb1c5d95868d3aa69aa45f28 Mon Sep 17 00:00:00 2001 From: Steve Goldhaber Date: Mon, 10 Feb 2025 10:16:24 +0100 Subject: [PATCH] Fix typo, remove bad outfld call --- src/cpl/nuopc/atm_import_export.F90 | 6 ------ src/physics/cam/restart_physics.F90 | 2 +- 2 files changed, 1 insertion(+), 7 deletions(-) diff --git a/src/cpl/nuopc/atm_import_export.F90 b/src/cpl/nuopc/atm_import_export.F90 index cc2dd626a3..eea2b5b3b2 100644 --- a/src/cpl/nuopc/atm_import_export.F90 +++ b/src/cpl/nuopc/atm_import_export.F90 @@ -15,7 +15,6 @@ module atm_import_export use cam_logfile , only : iulog use cam_history , only: outfld use spmd_utils , only : masterproc, mpicom - use constituents , only : cnst_get_ind, sflxnam use srf_field_check , only : set_active_Sl_ram1 use srf_field_check , only : set_active_Sl_fv use srf_field_check , only : set_active_Sl_soilw @@ -555,7 +554,6 @@ subroutine import_fields( gcomp, cam_in, restart_init, rc) ! local variables type(ESMF_State) :: importState integer :: i,n,c,g, num ! indices - integer :: ncols ! number of columns integer :: nstep logical :: overwrite_flds logical :: exists @@ -893,7 +891,6 @@ subroutine import_fields( gcomp, cam_in, restart_init, rc) call state_getfldptr(importState, 'Faoo_fdms_ocn', fldptr=fldptr1d, exists=exists, rc=rc) if (exists) then - call cnst_get_ind('DMS', pndx_fdms, abort=.true.) ! Ideally what should happen below is that ! cam_in%cflx(icol,pndx_fdms) should be set directly from ! fldptr1d. However, the code initializes the chemistry @@ -908,8 +905,6 @@ subroutine import_fields( gcomp, cam_in, restart_init, rc) cam_in(c)%fdms(i) = -fldptr1d(g) * med2mod_areacor(g) g = g + 1 end do - ncols = get_ncols_p(c) - call outfld( sflxnam(pndx_fdms), cam_in(c)%fdms, ncols, c) end do end if @@ -1046,7 +1041,6 @@ subroutine export_fields( gcomp, model_mesh, model_clock, cam_out, rc) type(ESMF_State) :: importState type(ESMF_Clock) :: clock integer :: i,m,c,n,g ! indices - integer :: ncols ! Number of columns integer :: nstep logical :: exists real(r8) :: scale_ndep diff --git a/src/physics/cam/restart_physics.F90 b/src/physics/cam/restart_physics.F90 index 2cac87a031..63abd6eb8b 100644 --- a/src/physics/cam/restart_physics.F90 +++ b/src/physics/cam/restart_physics.F90 @@ -348,7 +348,7 @@ subroutine write_restart_physics (File, cam_in, cam_out, pbuf2d) ncol = cam_in(i)%ncol tmpfield(:ncol,i) = cam_in(i)%fbrf(:ncol) end do - call pio_write_darray(File, fbrf_desc_desc, iodesc, tmpfield, ierr) + call pio_write_darray(File, fbrf_desc, iodesc, tmpfield, ierr) do i = begchunk, endchunk ncol = cam_in(i)%ncol