-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
13 changed files
with
129 additions
and
366 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
gnu: default development compilers | ||
|
||
If you compile without OPENMP (the default), then you will see warnings | ||
If you compile without OPENMP, then you will see warnings | ||
about Ignoring #pragma omp .... This is normal. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,57 +1,6 @@ | ||
How do I configure the makefile to support the ncep local defined rotated lat-lon grid | ||
edit grib2/makefile | ||
USE_IPOLATES=1 | ||
USE_SPECTRAL=0 | ||
How to build on an NCEP machine | ||
|
||
How do I configure the makefile to support the WMO defined rotated lat-lon grid | ||
edit grib2/makefile (default) | ||
USE_IPOLATES=3 | ||
USE_SPECTRAL=1 | ||
The current wgrib2 now lives on github | ||
https://github.com/NOAA-EMC/wgrib2 | ||
|
||
How do I configure the makefile to support netcdf4? | ||
edit grib2/makefile | ||
USE_NETCDF3=0 | ||
USE_NETCDF4=1 | ||
Note: you will be prompted to download the netcdf4 and hdf5 libraries | ||
in order to complete the make. | ||
|
||
|
||
How do I compile on NCEP's WCOSS2 system | ||
|
||
export CC=icc | ||
export FC=ifort | ||
export COMP_SYS=intel_linux | ||
make | ||
(fails) | ||
cp lib64/*.a lib/ | ||
make | ||
|
||
comment: WCOSS2 has altered how libraries are compiled using configure. | ||
Normally libraries are built in lib/; however, a local routine puts the | ||
libraries in lib64/. Since this behavor has only been observed in | ||
WCOSS2, no fixes to the makefile ar planned. | ||
|
||
|
||
How do I compile on NCEP's workstations | ||
|
||
edit grib2/makefile | ||
cd (whatever)/grib2 | ||
vi makefile | ||
change | ||
USE_AEC=1 | ||
to | ||
USE_AEC=0 | ||
change | ||
USE_JASPER=0 | ||
to | ||
USE_JASPER=1 | ||
change | ||
USE_OPENJPEG=1 | ||
to | ||
USE_OPENJPEG=0 | ||
|
||
(from bash) | ||
export CC=gcc | ||
export FC=gfortran | ||
make | ||
|
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,55 +1,16 @@ | ||
Compiling wgrib2 with netcdf-4 | ||
|
||
9/2022: wgrib2 v3.1.2beta3 | ||
compiles in Ubuntu 20.04LTS gcc 9.4.0 | ||
compiles in RedHat release 7.9 gcc 4.8.5 | ||
does not compile (hdf5) with AMD clang version 13.0.0 | ||
|
||
4/2022: netcdf4 seems to be working gcc v9.4.0. clang is a no go. | ||
I am trying to compile on cygwin but it has been compiling for 3 hours. | ||
With the github version of wgrib2, you have to use the system version of netcdf4. | ||
To install netcdf under Ubuntu, I did | ||
|
||
8/2020: | ||
used synaptic to install libnetcdf-dev .. installs many packages | ||
sudo apt install netcdf-bin .. need ncdump to pass tests | ||
|
||
NetCDF4 support has been in shambles for many years. The good news, | ||
Redhat with its vintage compilers has been working fine. If you | ||
are using the Intel compilers, it compiles and probably works. | ||
To build wgrib2 with netcdf, you modify the top level CMakeLists.txt | ||
from | ||
option(USE_NETCDF "Use NetCDF" off) | ||
to | ||
option(USE_NETCDF "Use NetCDF" on) | ||
|
||
|
||
Support: There is no way to support using XYZ compiler in ABC operating | ||
system. The user has to test whether their copy of wgrib2 with the NetCDF4 | ||
options works. Don't assume that "it compiled" means "it worked". I have | ||
seen "it compiled" but "it doesn't work". The NetCDF4 code seems to be | ||
robust but the hdf5 library is sensitive to the version of the compiler. | ||
|
||
Configuration: | ||
|
||
In the makefile, change the configuration to | ||
|
||
USE_NETCDF3=0 | ||
USE_NETCDF4=1 | ||
|
||
|
||
Then you have to set the environment variables to the C and F90 compilers | ||
and run gnu make. | ||
|
||
(bash example) | ||
|
||
export CC=gcc (set the C compiler) | ||
export FC=gfortran (set the f90 compiler) | ||
make (on some machines this gnu make could be called gmake) | ||
|
||
The make will respond with an error message that you need to get the netcdf4 source code. | ||
You can get the source code using wget. | ||
|
||
make (on some machines this gnu make could be called gmake) | ||
|
||
The make will respond with another error message that you need to get the hdf5 source code. | ||
You can get the source code using wget. | ||
|
||
make (third time is a charm) | ||
|
||
|
||
This has been tested with gcc/gfortran and clang/gfortran on Ubuntu 12.04 (64 bits) and | ||
with gcc/fortran on Redhat 5 and 6 (64-bits). | ||
|
||
Notes: UCAR has a web page with help in compiling netcdf. | ||
and build normally. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
How to submit questions? | ||
|
||
Questions are now handled by github | ||
|
||
https://github.com/NOAA-EMC/wgrib2 | ||
|
||
Select the issue tab. You might want to see if the | ||
problem has been previously addressed. | ||
|
||
Why do you want to submit questions by github vs the old way? | ||
- multiple people can answer | ||
- you can help train these muiltiple people | ||
(only one is an experienced wgrib2 user) | ||
- solved issues are documented and can help others | ||
|
Oops, something went wrong.