Skip to content

fix no-MPI compilation for F-A scheme#363

Merged
climbfuji merged 1 commit into
NCAR:dtc/developfrom
grantfirl:fix_no_mpi_compile_FA
Dec 3, 2019
Merged

fix no-MPI compilation for F-A scheme#363
climbfuji merged 1 commit into
NCAR:dtc/developfrom
grantfirl:fix_no_mpi_compile_FA

Conversation

@grantfirl
Copy link
Copy Markdown
Collaborator

  • add preprocessor directive around MPI_BCAST statements for non-MPI compilation with SCM

IMO, no RTs required.

write(0,*)' ABORTING!'
#ifdef MPI
call MPI_ABORT(MPI_COMM_COMP, rc, IRTN)
#endif
Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I suppose that I could put an #else STOP here?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Or, set ccpp_errflg/msg and return since we're not supposed to STOP in a scheme?

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we should do that in either case - set errmsg and errflg and return, not even worrying about MPI_ABORT or STOP.

@climbfuji
Copy link
Copy Markdown
Collaborator

@grantfirl I already merged the PR for SCM. I will thus merge this PR as a temporary fix and hope for another PR that uses errmsg/errflg instead of aborting the model. Thanks!

Copy link
Copy Markdown
Collaborator

@climbfuji climbfuji left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approved as temporary workaround.

@climbfuji climbfuji merged commit 7041bd2 into NCAR:dtc/develop Dec 3, 2019
hannahcbarnes pushed a commit to hannahcbarnes/ccpp-physics that referenced this pull request Aug 3, 2022
…#363 (send correct pointers to JEDI) (NCAR#368)

* clean up redundant surface variables
* Updates to send correct pointers to JEDI 

Co-authored-by: man.zhang <Man.Zhang@noaa.gov>
Co-authored-by: Mark Potts <Mark.Potts@noaa.gov>
lisa-bengtsson pushed a commit to lisa-bengtsson/ccpp-physics that referenced this pull request Mar 18, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants