site map - email us - search  
 


TERRAIN Tutorial : Trouble Shooting

 

  • If your job fails to produce those binary and plot files, check terrain.print.out for any clues. Also check the file 'make.terrain.out' to see if the compilation is successful.

  • If you have NCAR Graphics, but either the compilation failed or no plot file is generated, check to see if you have set NCARG_ROOT in your .cshrc. Also check if the location of NCAR Graphics library is as it is assumed in the Makefile. For example, on a Compaq machine, the NCAR Graphics library is assumed to be in /usr/local/ncarg:

    LOCAL_LIBRARIES= -L/usr/local/ncarg/lib -lncarg -lncarg_gks -lncarg_c -lX11 -lm

  • If you are running on a Linux machine, using the PFI compilers, and you encounter this error during compilation:
         /usr/bin/ld: cannot find -f2c
         make [1]:[terrain.exe] Error 2 (ignored)


    This means that you are missing the Fortran to C library. There are 2 solutions to this problem.

    1) Look and see if you have a g2c library (libg2c.a) on your computer. Most newer linux computers have this library. If you do, change the "f2c" in your Makefile to "g2c", and make sure the path to this library is set correct. Compile code again.

    2) If you do not have the libg2c.a on your computer, download the libf2c.a from the ftp site, and compile again.
         ftp://ftp.ucar.edu/mesouser/MM5V3/Test/libf2c.a

 

 

 

UCAR Privacy Policy - Terms of Use - ©2004UCAR