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

Compile.sh #104

Merged
merged 15 commits into from
Jun 5, 2020
Merged

Compile.sh #104

merged 15 commits into from
Jun 5, 2020

Conversation

MinsukJi-NOAA
Copy link
Collaborator

SMoorthi-emc and others added 6 commits May 14, 2020 01:45
* Change to fv3_coupled module in before_components
* Add MOM6_MAKEOPT and CICE_MAKEOPT in compile.sh for debug
* Change compile specifications in rt.conf
* Change arguments to function call compile.sh in rt.sh and rt_utils.sh
@SMoorthi-emc
Copy link
Collaborator

SMoorthi-emc commented Jun 4, 2020 via email

@SMoorthi-emc
Copy link
Collaborator

Well, I need to have my own post since post doesn't take care of my needs. If this option is not in the official version, every time I merge, I have to take care of this. While I can do this this illustrates user unfriendly nature of this whole system.

@MinsukJi-NOAA
Copy link
Collaborator Author

MinsukJi-NOAA commented Jun 4, 2020

I recommend dropping "_coupled" as with compile.sh, we don't need duplicate files.

module files for fv3 and fv3_coupled are different. RT's do not pass with the fv3 module. I think the main difference between them is parallel netcdf and esmf. One thing we can do is to introduce a logic into fv3 for weather-model vs s2s-model.

@MinsukJi-NOAA MinsukJi-NOAA marked this pull request as ready for review June 4, 2020 18:07
@SMoorthi-emc
Copy link
Collaborator

I hope at some point we use single module file and a single configue file per machine as ufs-weather_model for GFSv17 will be the same as ufs-s2s-model and compile.sh works for both. There is no need to make things more complicated than needed.

@junwang-noaa
Copy link
Collaborator

junwang-noaa commented Jun 4, 2020 via email

@SMoorthi-emc
Copy link
Collaborator

Yes and CMEPS too. In my branch I already inserted CMEPS and was able to compile on Dell.
Waiting on a test run to see if it works.

@MinsukJi-NOAA
Copy link
Collaborator Author

Yes and CMEPS too. In my branch I already inserted CMEPS and was able to compile on Dell.
Waiting on a test run to see if it works.

CMEPS is already in.

@climbfuji
Copy link
Collaborator

Late to the party, but I want to confirm that all "if INTEL16" logic is no longer needed.

@SMoorthi-emc
Copy link
Collaborator

What is the difference between CICE_MAKEOPT and CICE6_MAKEOPT?
Can't there be only one generic "CICE_MAKEOPT" that can be used with either CICE5 or CICE6?

@MinsukJi-NOAA
Copy link
Collaborator Author

What is the difference between CICE_MAKEOPT and CICE6_MAKEOPT?
Can't there be only one generic "CICE_MAKEOPT" that can be used with either CICE5 or CICE6?

We are using *_MAKEOPT just for a debug flag, but potentially other component-specific flags can also be appended. In that sense, can we leave them separate for now? When the transition to CICE6 is complete, we can consolidate variables then?

@SMoorthi-emc
Copy link
Collaborator

SMoorthi-emc commented Jun 4, 2020 via email

@DeniseWorthen
Copy link
Collaborator

This seems ready to merge but do you want me to test the CICE6 build first? There would be no regression tests, just comfirmation that CICE6 builds in both regular and debug mode.

@MinsukJi-NOAA
Copy link
Collaborator Author

This seems ready to merge but do you want me to test the CICE6 build first? There would be no regression tests, just comfirmation that CICE6 builds in both regular and debug mode.

Were you able to successfully build CICE6 with current appBuilder method?

@DeniseWorthen
Copy link
Collaborator

Yes, I was able to build CICE6 at the time (05/11) by using a CICE6 app builder file and component_CICE6 which Tony created.

@MinsukJi-NOAA
Copy link
Collaborator Author

Yes, I was able to build CICE6 at the time (05/11) by using a CICE6 app builder file and component_CICE6 which Tony created.

Maybe you should give it a try then...

@DeniseWorthen
Copy link
Collaborator

Neither build worked. Could you take a look at the compile logs ? /scratch2/NCEPDEV/climate/Denise.Worthen/WORK/S2S_c6sh/tests

This is a from a branch I created here:
https://github.com/DeniseWorthen/ufs-s2s-model/tree/feature/testcompilesh

@MinsukJi-NOAA
Copy link
Collaborator Author

MinsukJi-NOAA commented Jun 5, 2020

Can you try setting clean_before and clean_after (lines 21 and 22) to NO in compile.sh, and retry?

@DeniseWorthen
Copy link
Collaborator

I got another but different error for the non-bug compile. The debug compile is still going.

@MinsukJi-NOAA
Copy link
Collaborator Author

Let me clone your repository and test it out.

@DeniseWorthen
Copy link
Collaborator

Let me check the branch I created. It might not be what I think it is. I'll give it another try.

@MinsukJi-NOAA
Copy link
Collaborator Author

I got the same error when I tried to build with the app builder file:
CICE6/forapps/ufs: No such file or directory

@DeniseWorthen
Copy link
Collaborator

I'm going to need to spend some time tracking this down. I see Tony made a commit to the Consortium repo about 10 days ago and it looks like something must have broken. I think what we've done in compile.sh to make room for CICE6 is probably fine, it is in the build of CICE6 itself that we need to fix something. So it is probably safe to go ahead and merge if you want to get this closed.

@MinsukJi-NOAA
Copy link
Collaborator Author

I agree.

@DeniseWorthen DeniseWorthen merged commit c8d0b66 into ufs-community:develop Jun 5, 2020
@MinsukJi-NOAA MinsukJi-NOAA deleted the s2s-compile branch June 5, 2020 17:32
DeniseWorthen added a commit to DeniseWorthen/ufs-s2s-model that referenced this pull request Jun 5, 2020
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.

5 participants