|
[Sponsors] |
Error while compiling a new library for Openfoam |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
April 13, 2023, 12:20 |
Error while compiling a new boundary condition in library for Openfoam
|
#1 |
New Member
Join Date: Jan 2022
Posts: 5
Rep Power: 4 |
Hey all
I was trying to compile a Boundary condition in a library. But I am receiving an error as follows: wmake libso . wmakeLnInclude: linking include files to ./lnInclude Making dependency list for source file heatTransferFvPatchScalarField.C g++ -std=c++14 -m64 -Dlinux64 -DWM_ARCH_OPTION=64 -DWM_DP -DWM_LABEL_SIZE=32 -Wall -Wextra -Wold-style-cast -Wnon-virtual-dtor -Wno-unused-parameter -Wno-invalid-offsetof -Wno-attributes -O3 -DNoRepository -ftemplate-depth-100 -I/opt/openfoam10/src/finiteVolume/lnInclude -IlnInclude -I. -I/opt/openfoam10/src/OpenFOAM/lnInclude -I/opt/openfoam10/src/OSspecific/POSIX/lnInclude -fPIC -c heatTransferFvPatchScalarField.C -o Make/linux64GccDPInt32Opt/heatTransferFvPatchScalarField.o heatTransferFvPatchScalarField.C: In copy constructor ‘Foam::heatTransferFvPatchScalarField::heatTransfe rFvPatchScalarField(const Foam::heatTransferFvPatchScalarField&)’: heatTransferFvPatchScalarField.C:97:21: error: use of deleted function ‘Foam::fixedGradientFvPatchField<Type>::fixedGradi entFvPatchField(const Foam::fixedGradientFvPatchField<Type>&) [with Type = double]’ 97 | Tfluid_(ptf.Tfluid_) | ^ In file included from /opt/openfoam10/src/finiteVolume/lnInclude/fixedGradientFvPatchFields.H:29, from heatTransferFvPatchScalarField.H:62, from heatTransferFvPatchScalarField.C:27: /opt/openfoam10/src/finiteVolume/lnInclude/fixedGradientFvPatchField.H:123:9: note: declared here 123 | fixedGradientFvPatchField | ^~~~~~~~~~~~~~~~~~~~~~~~~ heatTransferFvPatchScalarField.C: In member function ‘virtual void Foam::heatTransferFvPatchScalarField::write(Foam:: Ostream&) const’: heatTransferFvPatchScalarField.C:139:26: error: no matching function for call to ‘writeEntry(const char [6], Foam::Ostream&)’ 139 | writeEntry("value", os); | ^ In file included from /opt/openfoam10/src/OpenFOAM/lnInclude/word.H:42, from /opt/openfoam10/src/OpenFOAM/lnInclude/wordList.H:41, from /opt/openfoam10/src/OpenFOAM/lnInclude/patchIdentifier.H:38, from /opt/openfoam10/src/OpenFOAM/lnInclude/polyPatch.H:42, from /opt/openfoam10/src/finiteVolume/lnInclude/fvPatch.H:39, from /opt/openfoam10/src/finiteVolume/lnInclude/fvPatchField.H:47, from /opt/openfoam10/src/finiteVolume/lnInclude/fixedGradientFvPatchField.H:66, from /opt/openfoam10/src/finiteVolume/lnInclude/fixedGradientFvPatchFields.H:29, from heatTransferFvPatchScalarField.H:62, from heatTransferFvPatchScalarField.C:27: . . . . . . Can anyone please guide me how to overcome such error? Thanks in advance. Last edited by akashshankhdhar7; April 13, 2023 at 13:30. |
|
April 19, 2023, 13:58 |
|
#2 |
New Member
Join Date: Jan 2022
Posts: 5
Rep Power: 4 |
Thanks for you quick response and advice. Followed it and seems to work now!
|
|
Tags |
library compilation, openfoam 10 |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[OpenFOAM.com] Compiling Scotch library error | fedez91 | OpenFOAM Installation | 6 | March 3, 2022 00:25 |
[waves2Foam] stuck in compiling the waves2Foam library for OF-v1712 due to MA41 | Ya_Squall2010 | OpenFOAM Community Contributions | 3 | April 16, 2019 09:21 |
Compiling library and linking it to a solver | criolla | OpenFOAM | 2 | July 27, 2016 04:13 |
Compiling an external Fortran library of thermodynamics and using inside reactingFoam | Mehdi3031 | OpenFOAM Programming & Development | 4 | March 18, 2016 19:10 |
decomposePar is missing a library | whk1992 | OpenFOAM Pre-Processing | 8 | March 7, 2015 08:53 |