Remove switch list from w3init (or change how this is done) #474
Replies: 2 comments 2 replies
-
Any thoughts or preferences @aliabdolali @ukmo-ccbunney @mickaelaccensi @thesser1 ? |
Beta Was this translation helpful? Give feedback.
-
On further inspection the only place that the variable SWITCHES which is created via ad3 is output is in the netcdf files:
Not having this manually inserted code in ad3 is going to help facilitate the transition to CPP flags, a few options:
Option 3: Remove the print line of switches from ww3_ounf and the SWITCHES variable, which will remove the need for ad3 to insert the values for SWITCHES manually. My preference is option 3 or if someone else knows a simple way for option 1 to work. However, if it's important for any one to have the switches in the gridded output files, we always have a backup of option 2. |
Beta Was this translation helpful? Give feedback.
-
In the building of WW3 in ad3, we add the switches that were used to compile the model. See [these lines] (https://github.com/NOAA-EMC/WW3/blob/develop/model/bin/ad3#L264-L280) which are copied below:
Because of this build level code addition, it will make it harder if we want to move to other types of builds because of this custom code addition in the build itself. We could get rid of adding the switches completely or add the code in the files themselves that will create the list of switches. Or something else?
Beta Was this translation helpful? Give feedback.
All reactions