[MOAB-dev] Fortran interface to MOAB

Vijay S. Mahadevan vijay.m at gmail.com
Tue Oct 22 16:18:15 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 $<
-------------------

Vijay

On Tue, Oct 22, 2013 at 4:03 PM,  <kanaev at ibrae.ac.ru> wrote:
>
>
> so some examples are in itaps/imesh/ScdMeshF77
>
>
>
> How do i build ScdMeshF77.F from scratch?
>
>
>
> Thanks,
>
> Anton Kanaev
>
> The Nuclear Safety Institute (IBRAE)


More information about the moab-dev mailing list