100% found this document useful (1 vote)
458 views

Install WaveWatch

The document provides instructions for installing and configuring WAVEWATCH III software. It describes extracting files from a tar archive, running an installation script, and configuring environment variables and settings. The installation can use a local or generic configuration file. The user is prompted to choose compilers and provide other settings. Finally, it describes adding directories to the path to run executables and scripts from any location.
Copyright
© © All Rights Reserved
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
100% found this document useful (1 vote)
458 views

Install WaveWatch

The document provides instructions for installing and configuring WAVEWATCH III software. It describes extracting files from a tar archive, running an installation script, and configuring environment variables and settings. The installation can use a local or generic configuration file. The user is prompted to choose compilers and provide other settings. Finally, it describes adding directories to the path to run executables and scripts from any location.
Copyright
© © All Rights Reserved
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
You are on page 1/ 5

Install Wave Watch

1) tar zxvf wwatch3.beta.v4.18.tar.gz


2) ls -l
3) ./install_ww3_tar
===================================
------ Installing WAVEWATCH III v.4 -----===================================
Script for installing package from tar files.
Requires files in same directory as script.
Continue? [y|n] y
===================================
------ Installing WAVEWATCH III v.4 -----===================================
from tar source
This installation requires a configuration file (wwatch3.env).
The current version allows two types of env files:
- A local [L] wwatch3.env (Allowing multiple independent installations).
- A generic [G] dot-file .wwatch3.env (Old-fashioned option).
[L] Installs new, uses existing or updates env file in current directory.
[G] Installs new, uses existing or updates env file in home directory,
(home is presumably /home/labmeteo/WW4}).
Type your choice now: G
Installing in

/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

Compiler for aux. [cc]

: gcc

Scratch space [/home/labmeteo/WW4/tmp


]:
Save source code files (*.f) [yes] :
Save listing files [yes] :

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

Compile dan Linking Wavewatch


1) Setting Environment NetCDF dll. Caranya edit file .bashrc
gedit /home/labmeteo/.bashrc
Edit menjadi :
PATH=$PATH:/home/labmeteo/WW4/bin:/home/labmeteo/WW4/exe:/home/labmeteo/WW4/ft
n:
export PATH

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

Rubah baris 97-98


Before:
# Generic -------------------------------------------------------------------# f90 -o $prog $objects > link.out 2> link.err
# OK="$?"
After:
# Generic -------------------------------------------------------------------gfortran -o $prog $objects > link.out 2> link.err
OK="$?"
5) w3_new
Run the example:
ln3 ctest
ad3_test ctest
ad3 ctest 1
6) w3_make
7) w3_make w3_grid
8) Cek file exe di folder exe : ls -l /home/labmeteo/WW4/exe

You might also like