Laplace example not working for foam-extend-3.1

Front page Forums Plug-ins Laplace example not working for foam-extend-3.1

This topic contains 1 reply, has 2 voices, and was last updated by  nico 9 months, 1 week ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #1474

    savee
    Member

    Hi,
    I am trying to compile the Laplace example from OpenFOAM plug-in. But, it is giving error like..

    Making dependency list for source file Laplace.C
    SOURCE=/home/internal/cfd/vinayas/paralution-1.1.0/build/inc/plug-ins/OpenFOAM/matrices/lduMatrix/solvers/paralution_PCG/paralution_PCG.C ; g++ -m64 -Dlinux64 -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O3 -DNoRepository -ftemplate-depth-200 -I/home/internal/cfd/vinayas/Savita/foamGPU/foam/foam-extend-3.1/src/finiteVolume/lnInclude -I/home/internal/cfd/vinayas/paralution-1.1.0/build/inc -IlnInclude -I. -I/home/internal/cfd/vinayas/Savita/foamGPU/foam/foam-extend-3.1/src/foam/lnInclude -I/home/internal/cfd/vinayas/Savita/foamGPU/foam/foam-extend-3.1/src/OSspecific/POSIX/lnInclude -fPIC -c $SOURCE -o Make/linux64GccDPOpt/paralution_PCG.o
    SOURCE=Laplace.C ; g++ -m64 -Dlinux64 -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O3 -DNoRepository -ftemplate-depth-200 -I/home/internal/cfd/vinayas/Savita/foamGPU/foam/foam-extend-3.1/src/finiteVolume/lnInclude -I/home/internal/cfd/vinayas/paralution-1.1.0/build/inc -IlnInclude -I. -I/home/internal/cfd/vinayas/Savita/foamGPU/foam/foam-extend-3.1/src/foam/lnInclude -I/home/internal/cfd/vinayas/Savita/foamGPU/foam/foam-extend-3.1/src/OSspecific/POSIX/lnInclude -fPIC -c $SOURCE -o Make/linux64GccDPOpt/Laplace.o
    In file included from /home/internal/cfd/vinayas/paralution-1.1.0/build/inc/plug-ins/OpenFOAM/matrices/lduMatrix/solvers/paralution_PCG/paralution_PCG.C:50:
    /home/internal/cfd/vinayas/paralution-1.1.0/build/inc/plug-ins/OpenFOAM/matrices/lduMatrix/solvers/paralution_PCG/paralution_PCG.H:104: error: ‘solverPerformance’ does not name a type
    /home/internal/cfd/vinayas/paralution-1.1.0/build/inc/plug-ins/OpenFOAM/matrices/lduMatrix/solvers/paralution_PCG/paralution_PCG.C:89: error: ‘solverPerformance’ in namespace ‘Foam’ does not name a type
    In file included from /home/internal/cfd/vinayas/paralution-1.1.0/build/inc/plug-ins/OpenFOAM/matrices/lduMatrix/solvers/paralution_PCG/../paralution/paralution_openfoam.H:32,
    from /home/internal/cfd/vinayas/paralution-1.1.0/build/inc/plug-ins/OpenFOAM/matrices/lduMatrix/solvers/paralution_PCG/paralution_PCG.C:49:
    /home/internal/cfd/vinayas/Savita/foamGPU/foam/foam-extend-3.1/src/foam/lnInclude/lduMatrix.H: In static member function ‘static Foam::autoPtr<Foam::lduMatrix::solver> Foam::lduMatrix::solver::addsymMatrixConstructorToTable<solverType>::New(const Foam::word&, const Foam::lduMatrix&, const Foam::FieldField<Foam::Field, double>&, const Foam::FieldField<Foam::Field, double>&, const Foam::lduInterfaceFieldPtrsList&, const Foam::dictionary&) [with solverType = Foam::paralution_PCG]’:
    /home/internal/cfd/vinayas/Savita/foamGPU/foam/foam-extend-3.1/src/foam/lnInclude/lduMatrix.H:344: instantiated from ‘Foam::lduMatrix::solver::addsymMatrixConstructorToTable<solverType>::addsymMatrixConstructorToTable(const Foam::word&) [with solverType = Foam::paralution_PCG]’
    /home/internal/cfd/vinayas/paralution-1.1.0/build/inc/plug-ins/OpenFOAM/matrices/lduMatrix/solvers/paralution_PCG/paralution_PCG.C:59: instantiated from here
    /home/internal/cfd/vinayas/Savita/foamGPU/foam/foam-extend-3.1/src/foam/lnInclude/lduMatrix.H:323: error: cannot allocate an object of abstract type ‘Foam::paralution_PCG’
    /home/internal/cfd/vinayas/paralution-1.1.0/build/inc/plug-ins/OpenFOAM/matrices/lduMatrix/solvers/paralution_PCG/paralution_PCG.H:65: note: because the following virtual functions are pure within ‘Foam::paralution_PCG’:
    /home/internal/cfd/vinayas/Savita/foamGPU/foam/foam-extend-3.1/src/foam/lnInclude/lduMatrix.H:457: note: virtual Foam::lduMatrix::solverPerformance Foam::lduMatrix::solver::solve(Foam::scalarField&, const Foam::scalarField&, Foam::direction) const
    make: *** [Make/linux64GccDPOpt/paralution_PCG.o] Error 1
    make: *** Waiting for unfinished jobs….

    Please give me any idea. How can I resolve this error.

    #1477

    nico
    Participant

    Hi Savee,

    unfortunately, we currently have no support for OpenFOAM 3.1. However, you can adjust the plugin files supplied with PARALUTION to your OpenFOAM version. Just have a look at the OpenFOAM 3.1 solver implementation and change the OpenFOAM class, function and variable names to the 3.1 version.

    Best
    Nico

    • This reply was modified 9 months, 1 week ago by  nico.
Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.