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

Stub interface for MPAS dynamical core #244

Conversation

kuanchihwang
Copy link
Collaborator

This PR introduces stub interface for MPAS dynamical core. This stub interface currently does nothing (i.e., can compile; cannot run), but it provides a fresh start from scratch for actual functionalities to be incrementally implemented later.

The APIs between CAM-SIMA control and dynamical core have changed from CAM.

This stub interface currently does nothing, but it provides a fresh start from
scratch for actual functionalities to be incrementally implemented later.
@nusbaume nusbaume self-requested a review January 9, 2024 15:20
@nusbaume nusbaume added the enhancement New feature or request label Jan 9, 2024
@mgduda mgduda self-requested a review January 9, 2024 22:55
Copy link
Collaborator

@nusbaume nusbaume left a comment

Choose a reason for hiding this comment

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

Looks like a great start!

@mgduda
Copy link
Collaborator

mgduda commented Jan 11, 2024

Almost certainly I'm doing something wrong, but when I create a new case with

./cime/scripts/create_newcase --case /glade/derecho/scratch/duda/fhs94 --project NMMM0013 --compset FHS94 --run-unsupported --pecount 36x1 --res mpasa240_mpasa240

I get an error in the build log and no successful compilation:

/usr/lib64/gcc/x86_64-suse-linux/7/../../../../x86_64-suse-linux/bin/ld: cannot find -lmusica
/usr/lib64/gcc/x86_64-suse-linux/7/../../../../x86_64-suse-linux/bin/ld: cannot find -ljsonfortran

My build log is here in case that helps: /glade/derecho/scratch/duda/fhs94/bld/cesm.bldlog.240110-171130 .

I'm using the default modules on Derecho:

Currently Loaded Modules:
  1) ncarenv/23.06 (S)   3) intel/2023.0.0        5) cray-mpich/8.1.25   7) netcdf/4.9.2
  2) craype/2.7.20       4) ncarcompilers/1.0.0   6) hdf5/1.12.2

Is there a step that I'm missing related to MUSICA or jsonfortran?

@nusbaume
Copy link
Collaborator

@mgduda Sorry! I told Kuan-Chich but forgot to tell you that there is temporarily an extra step you have to do in order to get the model to build. Can you try the following in your case directory:

./xmlchange CAM_LINKED_LIBS=""
./case.build --clean-all
./case.build

And let me know if that works? Hopefully this extra step will go away once issue #237 has been fixed.

@mgduda
Copy link
Collaborator

mgduda commented Jan 11, 2024

@nusbaume That did it -- thanks!

@kuanchihwang kuanchihwang merged commit aaeac7f into ESCOMP:development Jan 11, 2024
6 checks passed
@kuanchihwang kuanchihwang deleted the feature-mpas-dycore-stub-interface branch January 25, 2024 17:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Status: Tag
Development

Successfully merging this pull request may close these issues.

3 participants