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

dependency on land_model_mod.mod from AM4 #15

Open
edwardhartnett opened this issue Jul 30, 2019 · 3 comments
Open

dependency on land_model_mod.mod from AM4 #15

edwardhartnett opened this issue Jul 30, 2019 · 3 comments

Comments

@edwardhartnett
Copy link

I have a autotools based build system for FMScoupler, but unfortunately FMSCoupler depends on land_model_mod.mod from AM4. Meanwhile AM4 depends on FMSCoupler.

Your home-rolled build system + your methods of building (a.k.a. your "workflow") are hiding your inter-dependencies. I suggest you get those dependencies sorted out and decide what packages are going to depend of what other packages.

@thomas-robinson
Copy link
Member

@edwardhartnett I responded to your issue on NOAA-GFDL/AM4#14 . I think I can help you build land_model_mod.mod. The FMScoupler depends on the model components such as land, atmosphere, ocean, and ice. coupler_main.F90 or coupler_main.F90 contains the program statement for the model. The AM4 is a model configuration, so it uses coupler_main.F90 as it's main program. The current build system used by AM4 compiles all of the model components as libraries, and then links them together at the end.

Currently, land_lad2, atmos_shared, atmos_param, and atmos_drivers are only available with AM4 or CM4. I am hopeful that this will change soon.

@underwoo
Copy link
Member

underwoo commented Aug 6, 2019

@edwardhartnett and @thomas-robinson, please look at the t/null_model_build.sh script. It has what is required to build coupler_main.F90 using the null model components. This should be enough to get an autotools version of FMSCoupler library built.

@edwardhartnett
Copy link
Author

@underwoo I looked at that script and my brain melted.

I took a different approach, and found that there a seemingly other dependencies anyway, include ice_albedo_model and other _model mods that probably come from AM4.

OK I will put up my non-working build system so you can take a look, and then we will see if we can get the AM4 build system working, so I can build that, and then try this one again. ;-)

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

No branches or pull requests

3 participants