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

Running ADCIRC-WW3 without currents for WW3 #144

Closed
sarriegi opened this issue Nov 1, 2022 · 9 comments
Closed

Running ADCIRC-WW3 without currents for WW3 #144

sarriegi opened this issue Nov 1, 2022 · 9 comments

Comments

@sarriegi
Copy link

sarriegi commented Nov 1, 2022

Hello, I thought that running ADCIRC-WW3 with the currents disabled for WW3 would be simple just by turning the the corresponding flag in the ww3_multi file from 'CPL:native' to 'no'. However, when I did that I got this error:
error
I thought that another way to do this would be to go to the file that is responsible for the passing of the currents and multiply the u and v components of the currents with zero before they are passed to WW3. If this a correct way to do this, where this should be done? My guess is in ADCIRC/thirdparty/nuopc/adc_cap.F90, in the lines below:
adc_cap
Is this correct? If yes, there are two same lines for the u and two same lines for the v component, I guess I will have to multiply by zero all 4 of them? @moghimis @pvelissariou1

Angelos

@pvelissariou1
Copy link
Collaborator

pvelissariou1 commented Nov 3, 2022 via email

@pvelissariou1
Copy link
Collaborator

@sarriegi
Hi Angelos,

For the time being, please try to use the branch develop_build from CoastalApp. A lot of
things have been updated including WaveWatch III fixes.
Use:
git clone https://github.com/noaa-ocs-modeling/CoastalApp.git -b develop_build

Option 1:
You may run the build script with a pre-built ParMetis library as:
PARMETISHOME=location_of_installed_parmetis ./build.sh --compiler intel --component "atmesh adcirc ww3" --platform YOUR_PLATFORM

Option 2:
Run the scripts/download_parmetis.sh to fetch the ParMETIS sources. The sources will be stored in the thirdparty_open folder
Next run the build script as:
./build.sh --compiler intel --component "atmesh adcirc ww3" --platform YOUR_PLATFORM --tp parmetis
to build CoastalApp with the native parmetis.

WaveWatch III in CoastalApp uses the PDLIB switch (thus parmetis) by default. To compile without PDLIB, just remove this switch from the WW3/model/esmf/switch file and compile CoastalApp as described above.
Make sure you do a clean compilation, that is clean all generated objects from a previous compilation by running:
./build.sh --compiler intel --component "atmesh adcirc ww3" --platform YOUR_PLATFORM --tp parmetis --clean 3

Please let me know if the above work for you.

I'll be on annual leave from Monday to Wednesday.

Takis

@sarriegi
Copy link
Author

Thank you @pvelissariou1 ! The command
git clone https://github.com/noaa-ocs-modeling/CoastalApp.git -b develop_build
doesn't seem to work properly for me. There is a folder called 'CoastalApp' being generated, with all the sub-directories like 'WW3', 'ADCIRC', 'NEMS' etc inside it, but all of these sub-directories are completely empty. Do you know what the problem might be?

Angelos

@saeed-moghimi-noaa

@sarriegi
Copy link
Author

@pvelissariou1 @saeed-moghimi-noaa
I added the --recurse-submodules option and I was able to download the full version

Angelos

@pvelissariou1
Copy link
Collaborator

pvelissariou1 commented Nov 14, 2022 via email

@sarriegi
Copy link
Author

Hi @pvelissariou1 , I am facing some issues with the compilation of ADCIRC. With the same environment, cmplrflags.mk file and command as I was using in the past for previous versions, I get the following errors:
image
These errors appear while trying to compile padcirc. The compilations of adcprep or adcirc finish without erros. Also WW3 compiles without errors. Do you know what might be the problem?

Angelos

@sarriegi
Copy link
Author

I figured it out after all! @pvelissariou1

Angelos

@pvelissariou1
Copy link
Collaborator

pvelissariou1 commented Nov 14, 2022 via email

@pvelissariou1
Copy link
Collaborator

not an issue anymore

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

No branches or pull requests

2 participants