-
Notifications
You must be signed in to change notification settings - Fork 542
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
Fix nuopc cap for radiation stress components #1272
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -145,6 +145,9 @@ subroutine advertise_fields(importState, ExportState, flds_scalar_name, rc) | |
call fldlist_add(fldsFrWav_num, fldsFrWav, 'Sw_vstokes') | ||
else | ||
call fldlist_add(fldsFrWav_num, fldsFrWav, 'Sw_z0') | ||
call fldlist_add(fldsFrWav_num, fldsFrWav, 'Sw_wavsuu') | ||
call fldlist_add(fldsFrWav_num, fldsFrWav, 'Sw_wavsuv') | ||
call fldlist_add(fldsFrWav_num, fldsFrWav, 'Sw_wavsvv') | ||
end if | ||
call fldlist_add(fldsFrWav_num, fldsFrWav, 'Sw_pstokes_x', ungridded_lbound=1, ungridded_ubound=3) | ||
call fldlist_add(fldsFrWav_num, fldsFrWav, 'Sw_pstokes_y', ungridded_lbound=1, ungridded_ubound=3) | ||
|
@@ -753,14 +756,14 @@ subroutine export_fields (gcomp, rc) | |
call CalcBotcur( va, wbcuru, wbcurv, wbcurp) | ||
end if | ||
|
||
if ( state_fldchk(exportState, 'wavsuu') .and. & | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @JessicaMeixner-NOAA @alperaltuntas I think this section is not working as it is since it is using different variable names in if statement and get field pointer part of the code. I am not sure this type coupling is tested under CESM or not but if it is running under CESM, I'll be surprised. So, I am not expecting any issue also in the CESM side. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @uturuncoglu okay let me know if you need anything from my side. |
||
state_fldchk(exportState, 'wavsuv') .and. & | ||
state_fldchk(exportState, 'wavsvv')) then | ||
call state_getfldptr(exportState, 'sxxn', sxxn, rc=rc) | ||
if ( state_fldchk(exportState, 'Sw_wavsuu') .and. & | ||
state_fldchk(exportState, 'Sw_wavsuv') .and. & | ||
state_fldchk(exportState, 'Sw_wavsvv')) then | ||
call state_getfldptr(exportState, 'Sw_wavsuu', sxxn, rc=rc) | ||
if (ChkErr(rc,__LINE__,u_FILE_u)) return | ||
call state_getfldptr(exportState, 'sxyn', sxyn, rc=rc) | ||
call state_getfldptr(exportState, 'Sw_wavsuv', sxyn, rc=rc) | ||
if (ChkErr(rc,__LINE__,u_FILE_u)) return | ||
call state_getfldptr(exportState, 'syyn', syyn, rc=rc) | ||
call state_getfldptr(exportState, 'Sw_wavsvv', syyn, rc=rc) | ||
if (ChkErr(rc,__LINE__,u_FILE_u)) return | ||
call CalcRadstr2D( va, sxxn, sxyn, syyn) | ||
end if | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@uturuncoglu should this be in the else for the cesm coupled? or should this be completely outside of this if/else statement?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@JessicaMeixner-NOAA I think those variables are not used by CESM but we are using under UFS Coastal. So, I did not want to change anything in CESM side by putting them outside of the if statement.