-
Notifications
You must be signed in to change notification settings - Fork 12
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
add new awiesm version awiesm-2.6 for fesom-2.6 #1235
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good from the esm-tools
side. @ackerlar, if you want, I can produce a few benchmarked examples on Albedo and Levante together with run configurations to give to new users.
couplings/echam/env_echam.py
Outdated
@@ -27,7 +27,7 @@ def prepare_environment(config): | |||
"MACHINE": config["computer"]["name"], | |||
"MESH_PATH_FESOM": config["fesom"]["mesh_dir"], | |||
"HOSING_FILE_LANDICE_LOSS": config["fesom"].get("fwf_path", config["general"]["experiment_couple_dir"]), | |||
"HOSING_CORRECTION": config["echam"].get("hosing_correction", 0), # LA: Not needed anymore with Lu's ECHAM gfw fix | |||
"HOSING_CORRECTION": int(config["echam"].get("hosing_correction", False)), # LA: Not needed anymore with Lu's ECHAM gfw fix |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What is the gfw fix? Just out of curiosity...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It`s the "gfw_to_ocean" implementation. But this global "hosing" is still necessary to account for the correct ocean salinity
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It might be good to use the Click
library for this one, that way we can integrate the functionality into the global command line interface. See the upcoming redesign in #1232
Sounds great! Thank you! |
Build fails for
I'm looking into it. |
Does @JanStreffing has got similar issues? |
Did not try building on albedo, sorry. |
@pgierz Did you have a look at the compile issue on Albedo? I get the same error for AWI-ESM-2.6, but AWI-ESM-2.1 works fine |
I haven't had time to look in detail yet. I guess the CMakeLists in FESOM changed quite extensively between the one for AWIESM 2.1 and AWIESM 2.6.
|
Do you maybe have an idea about this, @sebastianbeyer or @mandresm ? |
Alright, I have a In the main CMakeLists.txt of OASIS, under lib/psmile set(all_headers ${src_home}/include)
if(${CMAKE_Fortran_COMPILER_ID} STREQUAL "Intel")
- set(OASIS_FFLAGS -ansi_alias -fp-model precise -no-fast-transcendentals)
+ set(OASIS_FFLAGS -ansi-alias -fp-model precise -no-fast-transcendentals -fPIC)
endif()
# depends on the mct library Rebuild oasis, then fesom. Linking works. |
I just checked the oasis3mct.env.yaml. Is there a particular reason why this flag is set for levante and juwels but not for albedo? |
Hey :) I do not completely understand what's going on here, but my guess would be that we changed the way we build fesom to use PIC and that requires that other libraries that are linked together now do also required PIC now (PIC shared libraries can only be created from PIC objects). I am not sure if FESOM was previously built without PIC... |
No, I guess I forgot to initially include it. Go ahead and add it to this PR, that would mean that we don't need to modify OASIS directly in the source code, which I would be happy about |
As I understand, the OASIS_FFLAGS are overwritten in the CMakeLists when using an Intel compiler so it does not make any difference if the glafs are changed with the esm_tools |
I created a PR in the oasis repository now |
Works now for me with the updated oasis version |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks great, differences in the tests are the expected ones.
#bump
I said #bump ! |
#approve-changes |
I named the new awiesm version now "AWIESM-2.6" as a lot of development happened since awiesm-2.1 and all features are now included in one common version: wiso, icebergs, ice sheet coupling, cavities, recom, tracer
I tested for icebergs and cavities. Please check if anything needs to be added for other features.