$ cat compile.*
REM Compiling and linking with gfortran
@REM prevent conflicts if G95 is installed
set LIBRARY_PATH=
c:\MinGW\bin\gfortran -o calwrf.exe calwrf.f -L.-llibnetcdf-0#!/bin/sh# Compile calwrf on Linux using pgf95if[-f calwrf.exe ];then rm calwrf.exe;fi
pgf95 -Bstatic calwrf_v2.0.1.f -lnetcdf-lm-o calwrf.exe
#$ /cluster/CALPUFF6/CALWRF/binary_linux/calwrf.exe_old ../calwrf/calwrf01.inp
Control inp file:../calwrf/calwrf01.inp
2D.DAT flag input not exist, set to one
Set 2D.DAT flag to 1: 1
Default 2D.DAT filename:1901d4.m2d
Open WRF netcdf file 1 :
/nas1/WRF4.0/WRFv4.2/201901/wrfout/wrfout_d04_2018-12-31_00:00:00
N_TIMES: 24
Processing GLOBAL ATTRIBUTES:
This is not a wrfout file
No 3D.DAT will be created
FORTRAN STOP
# find the location of error message#$grep -n wrfout /cluster/CALPUFF6/CALWRF/code/calwrf.f
1894: !! diagnostics only available for wrfout data
1895: print*,"This is not a wrfout file "
修改原始碼
calwrf.f新增一組判斷是否為WRF V4即可
if(INDEX(value_chr,'OUTPUT FROM WRF V2')==0)thenif(INDEX(value_chr,'OUTPUT FROM WRF V3')==0)thenif(INDEX(value_chr,'OUTPUT FROM WRF V4')==0)then!add by kuang!! diagnostics only available for wrfout dataprint*,"This is not a wrfout file "print*,"No 3D.DAT will be created"stopendif!add by kuangendifendif