Skip to content

Commit

Permalink
Fix some issues that came up after a full rebuild.
Browse files Browse the repository at this point in the history
  • Loading branch information
theurich committed Jan 11, 2024
1 parent ae275e7 commit e0f7f37
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 8 deletions.
File renamed without changes.
10 changes: 3 additions & 7 deletions src/addon/NUOPC/interface/NUOPC_c.F90
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
! INCLUDES
#include "ESMF.h"

subroutine f_nuopc_modelsetservices(compPtr, rc)
subroutine f_nuopc_modelsetservices(gcomp, rc)
#undef ESMF_METHOD
#define ESMF_METHOD "f_nuopc_modelsetservices"

Expand All @@ -24,18 +24,14 @@ subroutine f_nuopc_modelsetservices(compPtr, rc)
use NUOPC_Model, only: SetServices
implicit none

type(ESMF_CompClass), pointer :: compPtr !in
integer, intent(out) :: rc !out
type(ESMF_GridComp) :: gcomp !in
integer, intent(out) :: rc !out

type(ESMF_GridComp) :: gcomp
integer :: localrc

! Initialize return code; assume routine not implemented
rc = ESMF_RC_NOT_IMPL

gcomp%compp = compPtr
ESMF_INIT_SET_CREATED(gcomp)

call SetServices(gcomp, rc=localrc)
if (ESMF_LogFoundError(localrc, ESMF_ERR_PASSTHRU, &
ESMF_CONTEXT, rcToReturn=rc)) return
Expand Down
2 changes: 1 addition & 1 deletion src/addon/NUOPC/interface/makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

ALL: build_here

SOURCEC = NUOPC.c
SOURCEC = NUOPC_F.c
SOURCEF = NUOPC_c.F90
SOURCEH =

Expand Down

0 comments on commit e0f7f37

Please sign in to comment.