-
Notifications
You must be signed in to change notification settings - Fork 52
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
Queries related to WW3 compilation and running in COAWST #342
Comments
Ok. glad you are giving WW3 a try. We have spent a lot of effort to get WW3 coupled into the system, and we are still working on several issues. I will try to answer the q's as best i can.
You need to make a switch file, and put it somewhere, and list the path to the switch file in the build_coawst.sh. Then, during the build, I copy your switch file, add some flags, and call it switch_coawst. So then ww3 will always look for switch_coawst. This magic happens in the COAWST/makefile, down near lines 700.
define WAV2OCN_FLUXES - this will take the surface stresses from WW3 to be used in ROMS. With this option ROMS will not use bulk_fluxes for sustr or svstr. ROMS will use bulk_fluxes to compute the moisture and heat fluxes.define DISSIP_BREAK_DIR - this computes the wave breaking dissipation in each direction, rather than based on the mean wave direction. you can give it a try.
hope that helps. -j |
Thanks a lot John for a quick and elaborate response. It clears a lot of confusion in my head. I am inclined to use the switch with options as given in the manual (instead of the one I am using right now) as the one in the manual has some additional mandatory and optional switches which (in my understanding) will be required for my project. However, I have a few queries about it:
I was just about to tell you to close this issue, But I changed the title, thinking that the entire process may be clarified in one go and that may be beneficial for other future users as well :) I have some queries w.r.t the utilities (I am getting few errors upon running the WW3). I will post them after understanding the above queries and recompiling WW3 with the new switch. Kind Regards |
yes, you should be able to use ST4 or ST6 in WW3 switch file. i dont think the LRB4 and LRB8 are in the WW3 code anymore. I should remove that from the manual. |
Hello John. Sorry for bothering during the holiday season :) I have compiled with different switch options and the compilation is done. But I need to run all sets of command to see if the model is working properly. I have recently shifted to a rectangular/curvilinear grid for my project. The matlab code available for creating ww3 grid files in COAWST (x, y, bathy and mapsta) is for unstructured grid. I modified the code and created these files (from the ROMS.nc grid which I was already using) but I have some queries/ issues:
-Wishing you lovely holiday season |
%1) Enter name of ROMS grid, or provide the varaibles of
-j |
Hello everyone
I am new to wave modelling and esp COAWST framework. Right now, I am trying to set up WW3 application and run it independently. Later, I will couple it with ROMS (already ran the model in COAWST with some basic inputs). I consulted Section 11 of the manual and built the WW3. I have the executable coawstM in my project directory. WW3 utilities were updated in the ../build/bin directory as well. I have multiple queries related to the compilation in WW3. Here it goes:
SWITCH:UNINITIALIZED=.../WW3/model/model/bin/switch_coawst(THIS IS NOT THE NAME OF MY SWITCH)
F90 NOGRB DIST MPI PR3 UQ FLX4 LN1 ST6 NL1 BT1 DB1 MLIM TR0 BS0 IC0 IS0 REF0 XX0 WNT1 WNX1 CRT1 CRX1 RWND O0 O1 O2 O4 O5 O6 O7
The one available in COAWST is a bit different from that. Is it some requirement of COAWST?
NOGRB DIST MPI PR3 UQ FLX4 LN1 ST6 NL1 BT1 DB1 MLIM TR0 BS0 IC0 IS0 REF0 WNT1 WNX1 CRT1 CRX1 RWND O0 O1 O2 O4 O5 O6 O7
The 2021 tutorials says that COAWST needs to be included in the switch. The manual does not mention it. What is the current regime?
It was mentioned in 2021 tutorials that ./w3_clean -c; needs to be executed after building WW3 in COAWST. The manual does not mention it. Is this step necessary now? I tried it for learning purposes and got the following error:
[ERROR] no env file wwatch3.env found. (Is this file even necessary as we are defining the WW3 env in build file?)
With respect to header file, is there any other change required other than #define and #undef of models and MCT?
If I am running only WW3 (#undef ROMS and all other models), do I need to execute coawstM or the normal shel file?
The text was updated successfully, but these errors were encountered: