SMOKE 4.7 error

Hi

I follow the instruction to install SMOKE. The use manual says:

You should now be ready to compile the SMOKE programs. Change directories to $SMKROOT/src/.
• At the UNIX prompt, type:
make

Once I type “make”, I encounter with the following errors. Can anyone help?

-----------------^
/scratch/07245/niknejad/SMOKE/SMOKEv4.7-Original/subsys/smoke/src/emmod/modgrdlib.f(321): error #6404: This name does not have a type, and must have an explicit type. [INITSPHERES]
IF ( INITSPHERES() ) THEN
-----------------^
/scratch/07245/niknejad/SMOKE/SMOKEv4.7-Original/subsys/smoke/src/emmod/modgrdlib.f(321): error #6341: A logical data type is required in this context. [INITSPHERES]
IF ( INITSPHERES() ) THEN
-----------------^
/scratch/07245/niknejad/SMOKE/SMOKEv4.7-Original/subsys/smoke/src/emmod/modgrdlib.f(367): error #6404: This name does not have a type, and must have an explicit type. [INITSPHERES]
IF ( INITSPHERES() ) THEN
-----------------^
/scratch/07245/niknejad/SMOKE/SMOKEv4.7-Original/subsys/smoke/src/emmod/modgrdlib.f(367): error #6341: A logical data type is required in this context. [INITSPHERES]
IF ( INITSPHERES() ) THEN
-----------------^
/scratch/07245/niknejad/SMOKE/SMOKEv4.7-Original/subsys/smoke/src/emmod/modgrdlib.f(415): error #6404: This name does not have a type, and must have an explicit type. [INITSPHERES]
IF ( INITSPHERES() ) THEN
-----------------^
/scratch/07245/niknejad/SMOKE/SMOKEv4.7-Original/subsys/smoke/src/emmod/modgrdlib.f(415): error #6341: A logical data type is required in this context. [INITSPHERES]
IF ( INITSPHERES() ) THEN
-----------------^
/scratch/07245/niknejad/SMOKE/SMOKEv4.7-Original/subsys/smoke/src/emmod/modgrdlib.f(461): error #6404: This name does not have a type, and must have an explicit type. [INITSPHERES]
IF ( INITSPHERES() ) THEN
-----------------^
/scratch/07245/niknejad/SMOKE/SMOKEv4.7-Original/subsys/smoke/src/emmod/modgrdlib.f(461): error #6341: A logical data type is required in this context. [INITSPHERES]
IF ( INITSPHERES() ) THEN
-----------------^
/scratch/07245/niknejad/SMOKE/SMOKEv4.7-Original/subsys/smoke/src/emmod/modgrdlib.f(574): error #6404: This name does not have a type, and must have an explicit type. [GDTYP3D]
IF( .NOT. DSCM3GRD( GRDNM, GDESC, COORD, GDTYP3D, COORUNIT,
-----------------------------------------------------^
/scratch/07245/niknejad/SMOKE/SMOKEv4.7-Original/subsys/smoke/src/emmod/modgrdlib.f(575): error #6404: This name does not have a type, and must have an explicit type. [P_ALP3D]
& P_ALP3D, P_BET3D, P_GAM3D, XCENT3D, YCENT3D,
----------------------------^
/scratch/07245/niknejad/SMOKE/SMOKEv4.7-Original/subsys/smoke/src/emmod/modgrdlib.f(575): error #6404: This name does not have a type, and must have an explicit type. [P_BET3D]
& P_ALP3D, P_BET3D, P_GAM3D, XCENT3D, YCENT3D,
-------------------------------------^
/scratch/07245/niknejad/SMOKE/SMOKEv4.7-Original/subsys/smoke/src/emmod/modgrdlib.f(575): error #6404: This name does not have a type, and must have an explicit type. [P_GAM3D]
& P_ALP3D, P_BET3D, P_GAM3D, XCENT3D, YCENT3D,
----------------------------------------------^
/scratch/07245/niknejad/SMOKE/SMOKEv4.7-Original/subsys/smoke/src/emmod/modgrdlib.f(575): error #6404: This name does not have a type, and must have an explicit type. [XCENT3D]
& P_ALP3D, P_BET3D, P_GAM3D, XCENT3D, YCENT3D,
-------------------------------------------------------^
/scratch/07245/niknejad/SMOKE/SMOKEv4.7-Original/subsys/smoke/src/emmod/modgrdlib.f(575): error #6404: This name does not have a type, and must have an explicit type. [YCENT3D]
& P_ALP3D, P_BET3D, P_GAM3D, XCENT3D, YCENT3D,
----------------------------------------------------------------^
/scratch/07245/niknejad/SMOKE/SMOKEv4.7-Original/subsys/smoke/src/emmod/modgrdlib.f(576): error #6404: This name does not have a type, and must have an explicit type. [XORIG3D]
& XORIG3D, YORIG3D, XCELL3D, YCELL3D,
----------------------------^
/scratch/07245/niknejad/SMOKE/SMOKEv4.7-Original/subsys/smoke/src/emmod/modgrdlib.f(2901): catastrophic error: Too many errors, exiting
compilation aborted for /scratch/07245/niknejad/SMOKE/SMOKEv4.7-Original/subsys/smoke/src/emmod/modgrdlib.f (code 1)
make: *** [modgrdlib.o] Error 1

Looks like you do not have IOAPI library linked correctly. Check out the SMOKE installation chapter.

FYI, if you are able to run the SMOKE v4.7 test cases (chapter 12.3), that means you do not need to compile the SMOKE on your machine but use the precompiled executables that come with the package.