When linking our simulation code (a variant of phasta) to Catalyst in ParaView 
version 4.0.1 built on Titan with superbuild, I got the following linking 
errors:

-----------------
../../lib/libincompressible.a(itrdrv.f.o): In function `itrdrv_':
itrdrv.f:(.text+0x2add): undefined reference to `coprocessorinitialize_'
itrdrv.f:(.text+0x6198): undefined reference to `coprocessorfinalize_'
itrdrv.f:(.text+0x973d): undefined reference to `coprocessorfinalize_'
../../lib/libincompressible.a(phastaadaptor.f.o): In function 
`phastacoprocessor_':
phastaadaptor.f:(.text+0x84): undefined reference to `requestdatadescription_'
phastaadaptor.f:(.text+0x95): undefined reference to `needtocreategrid_'
phastaadaptor.f:(.text+0xba): undefined reference to `coprocess_'
/usr/bin/ld: link errors found, deleting executable `../../bin/phastaIC.exe'
-----------------

I use CMake to link Catalyst to our simulation code. I was able to resolve 
those linking errors when linking to ParaView version 3.98.1 by adding 
"find_package(ParaView 3.98 REQUIRED COMPONENTS FortranAdaptor)" in addition to 
find_package for vtkCoProcessorImplementation and then link both to the final 
executable. However, for ParaView version 4.0.1, it seems FortranAdaptor does 
not exist any more which defines those functions such as coprocessorinitialize, 
etc. Here is the corresponding excerpt in my CMakeLists.txt related to linking 
Catalyst in ParaView version 4.0.1:
-------------------
if(USE_CATALYST)
       find_package(ParaView 3.98 REQUIRED COMPONENTS vtkPVPythonCatalyst)
        find_library(PHASTA_ADAPTOR_LIB PhastaAdaptorLib)
        include("${PARAVIEW_USE_FILE}")
        set(Adaptor_SRCS phastaadaptor.f)
        add_library(Adaptor ${Adaptor_SRCS})
        target_link_libraries(Adaptor ${PHASTA_ADAPTOR_LIB} vtkPVPythonCatalyst)
        add_definitions("-DUSE_CATALYST")
endif()
-------------------

Adaptor is then linked to the final executable.

Please let me know if you have ideas on what I should do to resolve those 
linking errors.

Many thanks,

Hong



_______________________________________________
Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the ParaView Wiki at: 
http://paraview.org/Wiki/ParaView

Follow this link to subscribe/unsubscribe:
http://www.paraview.org/mailman/listinfo/paraview

Reply via email to