-
Notifications
You must be signed in to change notification settings - Fork 79
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
how to build stand alone library of cmeps? #465
Comments
It appears that a similar question was asked by @uturuncoglu in issue #402 almost a year ago but has not received a response. @uturuncoglu did you ever find a solution? I would second that the the organization of the shared codes is confusing. Best practice would be to put these shared codes in their own dedicated repository and then link them here and anywhere else they are used. A generic build not dependent on the CESM or UFS applications, as suggested by @uturuncoglu, would be great too. |
I think I have a solution, which required copying over many of the shared files from CDEPS and UFS to a new local directory
in the new
(note: I had to add the HAVE_IEEE_ARITHMETIC definition, which I assume is valid with the intel compiler, but I'm not sure how to deal with the error above when using gfortran instead.) and in the
@jedwards4b are you the owner of this repository? Can we add this in for now, and then change to a more generic solution with an external repo for the shared files later? |
@StevePny I am the maintainer of this repository. I apparently haven't followed it very well as I wasn't aware of issue #402 until now. I am planning to address the issue of the organization of shared files in the coming months and I will include this as one of the objectives of that reorg. For now I would suggest that you create a fork of cmeps with the mods that you need to build standalone - so you want a mediator library without a driver and without cdeps. |
Short version:
How do I build CMEPS as a library that can be used as the mediator for an ESMF/NUOPC coupled model? I've tried a few obvious approaches but none have worked and I have not been able to find instructions in the repo.
Long version:
I'm attempting to use CMEPS as a replacement mediator for our own ESM comprising a set of NUOPC-compliant coupled models.
I'd like to build cmeps as a library, similar to what is specified in the Makefile as:
CMEPS/mediator/Makefile
Line 18 in 6384ff4
so that we can create an ESMF makefile fragment for CMEPS and then use it to replace our own med.F90 mediator.
I have installed the ParallelIO package (which was not mentioned in the documentation, but seemed to be needed by the CMakeLists.txt and Makefile as required dependencies). After setting
export PIO=/opt/PIO
, where I installed it, the Makefile runs but is looking for additional routines that are in files in application-specific directories. While some are in the../ufs
directory in this repository, others are completely outside of this repository (as far as I can tell), for example I found some in the UFS repo and CDEPS repo.As an alternative, I've tried building with cmake. The Readme does not have any instructions for building. So assuming it is something like:
I get this error:
which is clearly looking for the missing files that are found in either the CDEPS or UFS repositories.
I tried just copying them into the local
shared
directory and adding them to the CMakeLists.txt files, but that did not seem to be sufficient. In that case I get this error:Could you provide some guidance as to how to build this package? (it would be great if these notes could be added to the README.md or an INSTALL file)
The text was updated successfully, but these errors were encountered: