Install WaveWatch
Install WaveWatch
/home/labmeteo/WW4
OK ? [y/n] y
Setting up environment variables.
Previous setup file not found. Variables will be set to defaults.
(User must check to see if these setting are appropriate.)
Creating wwatch3.env locally (also in home if G option chosen).
Printer (listings)
: printer
FORTRAN comp. (aux only) : f77
C Compiler (aux only)
: cc
Scratch directory
: /home/labmeteo/WW4/tmp
Save source code
: yes
Save listings
: yes
Update settings ? [y/n] y
Modifying set-up
Type n new settings, or press ENTER to keep [current ones]:
Printer for listings [printer] :
Compiler for aux. [f77]
: gfortran
: gcc
Modified settings:
Continue with actual implementation ? [y/n] y
[==========================SCREEN OUTPUT
OMMITTED=============================]
209
===============================
--- Final remarks --==============================================================
To run the WAVEWATCH III executables and the scripts to generate
and update these executables from arbitrary directories, add the
following directories to the path of your interactive shell :
/export/emc-lw-jhalves/wd20ha/WW3_GUIDE/bin
/export/emc-lw-jhalves/wd20ha/WW3_GUIDE/exe
Note that comp and link and switch are user/machine specific.
Several comp and link files for known compilers are found in:
/export/emc-lw-jhalves/wd20ha/WW3_GUIDE/bin
If you cannot find one that suits your machine/preferences,
create custom scripts based on the existing ones and add to bin.
===============================
--End of program
--===============================
4) ls -l
LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/lib:/usr/lib:
export LD_LIBRARY_PATH
export WWATCH3_NETCDF=NC4
export NETCDF_INCDIR=/usr/local/netcdf/inc
export NETCDF_LIBDIR=/usr/local/netcdf/lib
export NETCDF_CONFIG=/usr/local/netcdf
Simpan dan update source : source /home/labmeteo/.bashrc
2) Masuk ke folder work : cd /home/labmeteo/WW4/work
3) Edit file comp : gedit comp
Rubah baris 76-77
Before:
# Generic -------------------------------------------------------------------# f90 -c $name.$fext > $name.out 2> $name.err
# OK="$?"
After:
# Generic -------------------------------------------------------------------gfortran -nocpp -I../mod -c $name.$fext > $name.out 2> $name.err
OK="$?"
4) Edit file link : gedit link