cd /path/to/POM
cd www.ccpo.odu.edu/POMWEB/ mv POM2K ../../ mv GRID-DATA ../../
cd /path/to/POM/GRID-DATA
mkdir IC mkdir -p /path/to/POM/GRID-DATA/IC/include
cp gridborder /path/to/POM/GRID-DATA/IC/include cp gridcom /path/to/POM/GRID-DATA/IC/include cp params /path/to/POM/GRID-DATA/IC/include
vi rungrid
echo ' Start Compiling ...' g77 -O3 GRID.f #pgf77 GRID.f a.out > printout # # -------------- output files for POM2K ------------------------ /bin/mv fort.40 IC.dat # formatted IC,grid & constant wind # -------------- output files for MATLAB plotting ------------- /bin/mv fort.43 ijk.dat # IM, JM, KB, Z /bin/mv fort.44 plt.dat # formatted grid /bin/mv fort.45 bnd.dat # boundary points (gridborder) /bin/mv fort.46 wnd.dat # wind velocity /bin/mv fort.47 dxy.dat # dx,dx (km) # /bin/rm a.out /bin/rm fort.* echo ' *** END GRID ***'
修改后:
echo ' Start Compiling ...' flang -O3 GRID.f -I/path/to/POM/GRID-DATA/IC/include #pgf77 GRID.f #./a.out > printout # # -------------- output files for POM2K ------------------------ #mv fort.40 IC.dat # formatted IC,grid & constant wind # -------------- output files for MATLAB plotting ------------- #mv fort.43 ijk.dat # IM, JM, KB, Z #mv fort.44 plt.dat # formatted grid #mv fort.45 bnd.dat # boundary points (gridborder) #mv fort.46 wnd.dat # wind velocity #mv fort.47 dxy.dat # dx,dx (km) # #/bin/rm a.out #/bin/rm fort.* echo ' *** END GRID ***'
cp /path/to/POM/GRID-DATA/TOPO.dat /path/to/POM/GRID-DATA/IC cp /path/to/POM/GRID-DATA/TS.dat /path/to/POM/GRID-DATA/IC cp /path/to/POM/GRID-DATA/WIND.dat /path/to/POM/GRID-DATA/IC cp /path/to/POM/GRID-DATA/GRID.f /path/to/POM/GRID-DATA/IC cp /path/to/POM/GRID-DATA/IC.dat /path/to/POM/GRID-DATA/IC
export CC=mpicc export CXX=mpicxx export FC=mpif90
chmod 755 rungrid ./rungrid