Scheduled Downtime
On Tuesday 24 October 2023 @ 5pm MT the forums will be in read only mode in preparation for the downtime. On Wednesday 25 October 2023 @ 5am MT, this website will be down for maintenance and expected to return online later in the morning.
Normal Operations
The forums are back online with normal operations. If you notice any issues or errors related to the forums, please reach out to help@ucar.edu

Freshwater hosing

Dear all I am looking for advice on how to run a North Atlantic freshwater hosing experiment in CESM 1.0. I would like to apply a surface freshwater flux to the ocean around the edges of Greenland only. This flux is then to be globally compensated by a small salt flux everywhere else.The FAQ for CESM 1.2 has detailed the files to be modified for a hosing experiment (which I assume is relevant for CESM 1.0) - http://www.cesm.ucar.edu/models/cesm1.2/pop2/doc/faq/#forcing_hosing.   However, since my flux configuration is quite complex (i.e. relative to forcing within a simple box), I would like to read in the fluxes from file. This would be relatively simple if CESM were run in serial, but a parallel configuration requires that the flux file be split up amongst the various processors. I am looking for advice on how best to do this.   My question is therefore: how can I read in, and distribute amongst the different processors, a surface freshwater flux file for the purpose of a freshwater hosing experiment?   Thanks very much for any advice!    Matthew
 

l_vankampenhout@uu_nl

Leo van Kampenhout
Member
Hi Matthew,opening and closing files within POP can be done through the high-level functions construct_file(), data_set(), construct_io_field(), destroy_file()
If you search the code for these functions you'll find examples of what you need.
One catch: the file that you read must be in the same format as the model resolution, so the compensations you describe should already been applied to this.
Cheers, Leo
 

l_vankampenhout@uu_nl

Leo van Kampenhout
Member
Hi Matthew,opening and closing files within POP can be done through the high-level functions construct_file(), data_set(), construct_io_field(), destroy_file()
If you search the code for these functions you'll find examples of what you need.
One catch: the file that you read must be in the same format as the model resolution, so the compensations you describe should already been applied to this.
Cheers, Leo
 
Hi LeoExcellent, thank you very much indeed for the advice. I will certainly investigate these functions then to see if they can solve my problem. My input file has been constructed according to the ocean model grid, and it already contains both the freshwater addition and its global compensation. So there shouldn't be any problem there, if I understand correctly. Thanks again. Matthew
 
Hi LeoExcellent, thank you very much indeed for the advice. I will certainly investigate these functions then to see if they can solve my problem. My input file has been constructed according to the ocean model grid, and it already contains both the freshwater addition and its global compensation. So there shouldn't be any problem there, if I understand correctly. Thanks again. Matthew
 
Top