/usr/local/pkg/ESMF/ESMF_1_0_4/mpich-1.2.5..10/lahey/mod/modO/Linux.lahey.32.default
this directory must be included in the compiler header file search path
list when compiling code that includes ESMF modules and types. The compile
option
-I/usr/local/pkg/ESMF/ESMF_1_0_4/mpich-1.2.5..10/lahey/mod/modO/Linux.lahey.32.default
is used for this purpose.
The runtime libraries for the ESMF_1_0_4 build are located in the
directory
/usr/local/pkg/ESMF/ESMF_1_0_4/mpich-1.2.5..10/lahey/lib/libO/Linux.lahey.32.default
this directory must be included in the link search directory list and
the esmf library must be included in the list of binaries searched during
linking. The compile options
-L/usr/local/pkg/ESMF/ESMF_1_0_4/mpich-1.2.5..10/lahey/lib/libO/Linux.lahey.32.default
-lesmf
are used for this purpose.
Note: When executing a program that uses the ESMF library it is
necessary to include the the runtime library path in the dynamic loader
search path. This can be done through the environment variable "LD_LIBRARY_PATH".
For running ESMF executables this environment variable should be modified
to include "/usr/local/pkg/ESMF/ESMF_1_0_4/mpich-1.2.5..10/lahey/lib/libO/Linux.lahey.32.default".
The standard way to do this for a c-shell terminal is to add the following
to the c-shell startup script:
setenv LD_LIBRARY_PATH $LD_LIBRARY_PATH:/usr/local/pkg/ESMF/ESMF_1_0_4/mpich-1.2.5..10/lahey/lib/libO/Linux.lahey.32.default