Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

both =0 is not an error #392

Merged
merged 1 commit into from
Jul 10, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions mediator/med_methods_mod.F90
Original file line number Diff line number Diff line change
Expand Up @@ -1354,7 +1354,10 @@ subroutine med_methods_FB_accum(FBout, FBin, copy, rc)
call med_methods_Field_GetFldPtr(lfield, fldptr1=dataptro1, fldptr2=dataptro2, rank=lranko, rc=rc)
if (chkerr(rc,__LINE__,u_FILE_u)) return

if (lranki == 1 .and. lranko == 1) then
if (lranki == 0 .and. lranko == 0) then
! do nothing
call ESMF_LogWrite(trim(subname)//": Both ranki and ranko are 0", ESMF_LOGMSG_INFO)
elseif (lranki == 1 .and. lranko == 1) then

if (.not.med_methods_FieldPtr_Compare(dataPtro1, dataPtri1, subname, rc)) then
call ESMF_LogWrite(trim(subname)//": ERROR in dataPtr1 size ", ESMF_LOGMSG_ERROR)
Expand Down Expand Up @@ -1397,7 +1400,7 @@ subroutine med_methods_FB_accum(FBout, FBin, copy, rc)
else

write(msgString,'(a,2i8)') trim(subname)//": ranki, ranko = ",lranki,lranko
call ESMF_LogWrite(trim(msgString), ESMF_LOGMSG_INFO)
call ESMF_LogWrite(trim(msgString), ESMF_LOGMSG_ERROR)
call ESMF_LogWrite(trim(subname)//": ERROR ranki ranko not supported "//trim(lfieldnamelist(n)), &
ESMF_LOGMSG_ERROR)
rc = ESMF_FAILURE
Expand Down