cd /path/to/SWAN tar -zxvf swan4131.tar.gz cd swan4131
vim platform.pl
print OUTFILE "NETCDFROOT =/path/to/NETCDF\n";
782 sub getcmpl { 783 784 my $compiler = $ENV{'FC'}; 785 786 unless ( $compiler ) { 787 foreach ('ifort','gfortran','f90','ifc','efc','pgf90','xlf90', 'lf95','g95') { 788 $compiler = "gfortran"; 789 my $path = `which $compiler`; 790 last if $path; 791 } 792 } 793 794 return $compiler; 795 }
make config
make mpi