[MOAB-dev] Fortran interface to MOAB

Vijay S. Mahadevan vijay.m at gmail.com
Wed Oct 23 09:52:57 CDT 2013


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

Please give more information if your compilation/linking fails.

If the linker errors are due to C++ or MPI linkage, add those
appropriately and try again. If you still have problems, let us know.

Vijay

On Tue, Oct 22, 2013 at 6:12 PM,  <kanaev at ibrae.ac.ru> wrote:
>> 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