Skip to content

Commit 4b7dafe

Browse files
Merge pull request #20 from noaa-ocs-modeling/feature/adcirc_v55
ADCIRC v55
2 parents 1a18cce + fa8c331 commit 4b7dafe

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

66 files changed

+3864
-247
lines changed

.gitignore

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,13 @@
2626
*.a
2727
*.lib
2828

29+
# intermediate build files
30+
*_INSTALL/
31+
2932
# Executables
3033
*.exe
3134
*.out
3235
*.app
36+
37+
# Editor
38+
.idea

.gitmodules

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,24 @@
11
[submodule "ATMESH"]
22
path = ATMESH
3-
url = https://github.com/moghimis/ATMESH
3+
url = https://github.com/noaa-ocs-modeling/ATMESH.git
44
branch = master
55
[submodule "WW3DATA"]
66
path = WW3DATA
7-
url = https://github.com/moghimis/WW3DATA
7+
url = https://github.com/noaa-ocs-modeling/WW3DATA.git
88
branch = master
99
[submodule "WW3"]
1010
path = WW3
11-
url = https://github.com/awest-noaa/WW3.git
11+
url = https://github.com/noaa-ocs-modeling/WW3.git
1212
branch = nuopc_unstruc
1313
[submodule "NEMS"]
1414
path = NEMS
15-
url = https://github.com/moghimis/NEMS
15+
url = https://github.com/noaa-ocs-modeling/NEMS.git
1616
branch = develop
1717
[submodule "ADCIRC"]
1818
path = ADCIRC
19-
url = https://github.com/moghimis/adcirc-cg.git
19+
url = https://github.com/adcirc/adcirc-cg.git
2020
branch = master
2121
[submodule "NWM"]
2222
path = NWM
23-
url = https://github.com/trimbleava/nwm_public_nuopc.git
23+
url = https://github.com/noaa-ocs-modeling/nwm_public_nuopc.git
2424
branch = master

ADCIRC

ATMESH

HOWTO

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
Modified: Panagiotis Velissariou - 12/05/2020
2+
13
==================================
24
Coastal Act Team - 9/13/2019
35

@@ -591,7 +593,6 @@ build_NWM: $(nwm_mk)
591593

592594

593595
env_file=$(NWM_SRCDIR)/setEnvar.sh
594-
esmf_env=$(NWM_SRCDIR)/esmf-impi-env.sh
595596
comp_opt=3
596597

597598
# HOW to source env here??

NWM

Submodule NWM updated 47 files

README.md

Lines changed: 110 additions & 93 deletions
Original file line numberDiff line numberDiff line change
@@ -1,101 +1,118 @@
1-
## ADC-WW3-NWM-NEMS
2-
3-
ADC-WW3-NWM-NEMS is an ESMF application developed as part of the Coastal Act
4-
coupling project to determine wind versus water percentage loss caused by a
5-
Named Storm Event.
6-
7-
## Cloning
8-
git clone --recursive https://github.com/noaa-ocs-modeling/ADC-WW3-NWM-NEMS.git
1+
# ADC-WW3-NWM-NEMS
2+
3+
ESMF application for building a NUOPC / NEMS application coupling ADCIRC, ATMESH, WW3 / WW3DATA, and NWM.
4+
5+
`ADC-WW3-NWM-NEMS` is an ESMF application developed as part of the Coastal Act coupling project to determine wind versus water percentage loss caused by a Named Storm Event.
6+
7+
```bash
8+
git clone --recursive https://github.com/noaa-ocs-modeling/ADC-WW3-NWM-NEMS
9+
cd ADC-WW3-NWM-NEMS
10+
```
11+
12+
## Compilation
13+
14+
```bash
15+
./build.sh --component "ADCIRC ATMESH WW3DATA" --plat hera --compiler intel --clean -2
16+
```
17+
18+
- `--component` can be any combination of
19+
- `ADCIRC`
20+
- `ATMESH`
21+
- `WW3` / `WW3DATA`
22+
- `NWM`
23+
- `--plat` can be any combination of
24+
- `hera`
25+
- `stampede`
26+
- `wcoss`
27+
- `orion`
28+
- `jet`
29+
- `gaea`
30+
- `cheyenne`
31+
- `linux`
32+
- `macosx`
33+
- `--compiler` can be one of
34+
- `intel`
35+
- `gnu`
36+
- `pgi`
37+
- `--clean` is optional, and can be one of
38+
- ` ` (`make clean` and exit)
39+
- `1` (`make clean` and exit)
40+
- `2` (`make clobber` and exit)
41+
- `-1` (`make clean` and build)
42+
- `-2` (`make clobber` and build)
43+
44+
#### adding a new platform / compiler to compilation script
45+
46+
Environment files are stored in `modulefiles/` with the filename `envmodules_<COMPILER>.<PLATFORM>`
47+
48+
To compile in your own system you should create a similar file, then run `build.sh` to compile.
949

1050
## Requirements
1151

12-
### Install ParMETIS
13-
14-
Unstructured WW3 requires an installation of ParMETIS for domain decomposition. Download the code from this [link](http://glaros.dtc.umn.edu/gkhome/metis/parmetis/download)
15-
16-
To build ParMETIS:
17-
18-
module purge
19-
20-
module load intel impi
21-
22-
setenv CFLAGS -fPIC
23-
24-
make config cc=mpiicc cxx=mpiicc prefix=/path/to/your/parmetis/ | & tee config.out-rr
25-
26-
make install | & tee make-install.out-rr
27-
28-
This adds `libparmetis.a` under `/path/to/your/parmetis/lib/libparmetis.a`
29-
30-
Set the path to ParMETIS:
31-
32-
setenv METIS_PATH /path/to/your/parmetis
33-
34-
### Set module files based on your HPC
35-
36-
For a list of additional requirements and versions, see:
37-
38-
modulefiles/hera/ESMF_NUOPC
39-
40-
41-
## Compile
42-
43-
Set the following environment variable:
44-
45-
- `ROOTDIR`: The directory of your choice where the repository has been cloned
46-
47-
In the build script `build.sh`, select desired components for which to build the app, e.g.:
48-
49-
make -f GNUmakefile build COMPONENTS="ADCIRC WW3 ATMESH"
50-
51-
Execute the build script:
52-
53-
./build.sh
54-
52+
#### installing ParMETIS for WW3
53+
54+
Using unstructured WW3 requires an installation of ParMETIS for domain decomposition.
55+
56+
1. [download the code here](http://glaros.dtc.umn.edu/gkhome/metis/parmetis/download)
57+
2. build ParMETIS
58+
```bash
59+
module purge
60+
module load intel impi
61+
setenv CFLAGS -fPIC
62+
make config cc=mpiicc cxx=mpiicc prefix=/path/to/your/parmetis/ | & tee config.out-rr
63+
make install | & tee make-install.out-rr
64+
```
65+
This adds `libparmetis.a` under `/path/to/your/parmetis/lib/libparmetis.a`.
66+
3. set the path to ParMETIS
67+
```bash
68+
setenv METIS_PATH /path/to/your/parmetis
69+
```
5570

5671
## Collaboration
5772

5873
To collaborate and contribute to this repository follow below instructions:
5974

60-
While in github GUI, https://github.com/noaa-ocs-modeling/ADC-WW3-NWM-NEMS.git:
61-
62-
1) Hit the "Fork" button located on the upper right corner of the GUI in order
63-
to have your own copy of this repository into your own github repository.
64-
2) Your github username displays with a message "Where should we fork ..." .
65-
Click on your username to fork it into your account.
66-
3) You should see the source codes in your own github repository with the same
67-
name as the forked reopsitory.
68-
69-
Next you should create your local version of your forked repository.
70-
Go to your local directoy and clone the the repository:
71-
72-
1) git clone --recursive https://github.com/<your_github_repo_name>/ADC-WW3-NWM-NEMS
73-
2) do your collaboration edition and when finished
74-
3) git add .
75-
4) git commit -m "describe what you changed"
76-
5) git push origin master - to push your changes into your github
77-
6) enter your github username/password if asked
78-
79-
While in your github repository GUI:
80-
81-
1) push the "New pull request" button
82-
2) hit the "Create pull request" button
83-
3) the request goes to originated repository, where your changes are reviewed and
84-
merged or rejected.
85-
86-
### Setup and compilation
87-
88-
This application contains a module file tailored for the intended computer system.
89-
To compile in your own system you should create a similar file. The setup module
90-
file, is located at modulefile/hera/ESMF_NUOPC. Also, for your convenience there
91-
is a "HOWTO" that explains in detail about the usage of this application.
92-
93-
94-
## Cite
95-
96-
Moghimi, S.; Van der Westhuysen, A.; Abdolali, A.; Myers, E.; Vinogradov, S.; Ma, Z.; Liu, F.; Mehra, A.; Kurkowski, N. Development of an ESMF Based Flexible Coupling Application of ADCIRC and WAVEWATCH III for High Fidelity Coastal Inundation Studies. J. Mar. Sci. Eng. 2020, 8, 308. https://doi.org/10.3390/jmse8050308
97-
98-
Development of a Flexible Coupling Framework for Coastal Inundation Studies, 2020 S Moghimi, A van der Westhuysen, A Abdolali, E Myers, S Vinogradov
99-
https://arxiv.org/abs/2003.12652
100-
101-
Development of a Flexible Coupling Interface for ADCIRC Model for Coastal Inundation Studies, 2019 Saeed Moghimi, Sergey Vinogradov, Edward P Myers, Yuji Funakoshi, Andre J Van der Westhuysen, Ali Abdolali, Zaizhong Ma, Fei Liu https://repository.library.noaa.gov/view/noaa/20609/
75+
1. go to https://github.com/noaa-ocs-modeling/ADC-WW3-NWM-NEMS
76+
2. create a fork (click `Fork` on the upper right corner), and fork to your account.
77+
3. clone your forked repository
78+
```bash
79+
git clone --recursive https://github.com/<ACCOUNT>/ADC-WW3-NWM-NEMS
80+
```
81+
4. edit the files locally
82+
```bash
83+
git status
84+
```
85+
5. commit changes
86+
```bash
87+
git commit -a -m "describe what you changed"
88+
```
89+
6. push your changes to GitHub
90+
```bash
91+
git push
92+
```
93+
7. enter your GitHub username/password if asked
94+
8. create a pull request with descriptions of changes at
95+
```
96+
https://github.com/noaa-ocs-modeling/ADC-WW3-NWM-NEMS/compare/<BRANCH>...<ACCOUNT>:<BRANCH>
97+
```
98+
99+
## Citations
100+
101+
```
102+
Moghimi, S., Van der Westhuysen, A., Abdolali, A., Myers, E., Vinogradov, S.,
103+
Ma, Z., Liu, F., Mehra, A., & Kurkowski, N. (2020). Development of an ESMF
104+
Based Flexible Coupling Application of ADCIRC and WAVEWATCH III for High
105+
Fidelity Coastal Inundation Studies. Journal of Marine Science and
106+
Engineering, 8(5), 308. https://doi.org/10.3390/jmse8050308
107+
108+
Moghimi, S., Vinogradov, S., Myers, E. P., Funakoshi, Y., Van der Westhuysen,
109+
A. J., Abdolali, A., Ma, Z., & Liu, F. (2019). Development of a Flexible
110+
Coupling Interface for ADCIRC model for Coastal Inundation Studies. NOAA
111+
Technical Memorandum, NOS CS(41).
112+
https://repository.library.noaa.gov/view/noaa/20609/
113+
114+
Moghimi, S., Westhuysen, A., Abdolali, A., Myers, E., Vinogradov, S., Ma, Z.,
115+
Liu, F., Mehra, A., & Kurkowski, N. (2020). Development of a Flexible
116+
Coupling Framework for Coastal Inundation Studies.
117+
https://arxiv.org/abs/2003.12652
118+
```

WW3DATA

0 commit comments

Comments
 (0)