[MOAB-dev] Fortran interface to MOAB

kanaev at ibrae.ac.ru kanaev at ibrae.ac.ru
Tue Oct 22 18:12:26 CDT 2013


> A simple makefile along the lines of the one in the examples folder
> should work. Here's one that I tested on some fortran code. Let me
> know if that helps.
> 
> -------------------
> # MOAB_DIR points to top-level install dir, below which MOAB's lib/
> and include/ are located
> include ${MOAB_DIR}/lib/moab.make
> include ${MOAB_DIR}/lib/iMesh-Defs.inc
> 
> .SUFFIXES: .o .F90 .F
> 
> EXAMPLES = ScdMeshF77
> 
> default: ${EXAMPLES}
> 
> ScdMeshF77: ScdMeshF77.o
>   ${MOAB_FC} -o $@ $< ${IMESH_LIBS}
> 
> clean:
>   rm -rf *.o ${EXAMPLES}
> 
> .F90.o :
>   ${IMESH_FC} ${IMESH_FCFLAGS} ${IMESH_INCLUDES} ${IMESH_FCDEFS} -c $<
> 
> .F.o :
>   ${IMESH_FC} ${IMESH_FCFLAGS} ${IMESH_INCLUDES} ${IMESH_FCDEFS} -c $<
> -------------------

It doesn't work on Mira (MOAB_DIR =
/soft/applications/moab/4.6.0/cnk-xl/V1R2M0-20130419)






More information about the moab-dev mailing list