View Issue Details

IDProjectCategoryView StatusLast Update
0002483OpenFOAMBugpublic2017-03-02 23:32
ReporterJacques Assigned Tohenry  
PrioritynormalSeverityblockReproducibilityhave not tried
Status closedResolutionno change required 
PlatformGNU/LinuxOSUbuntuOS Version14.04
Summary0002483: OpenFoam-dev does not seem to make it properly through the if statement in OceanWave3D.C (recent download)
DescriptionOceanWave3D.c
waveTheories/externalWaveForcing/oceanWave3D/OceanWave3D.c:486:25: error: passing ‘const Internal {aka const Foam::DimensionedField<double, Foam::surfaceMesh>}’ as ‘this’ argument discards qualifiers [-fpermissive]

484 // Map the phiTemp -> phi
485 #if EXTBRANCH==1
486 phi.internalField() = phiTemp.internalField();
487 #elif OFPLUSBRANCH==1
488 phi.internalField() = phiTemp.internalField();
489 #else
490 #if OFVERSION<400
491 phi.internalField() = phiTemp.internalField();
492 #else
493 phi.ref() = phiTemp.internalField();
494 #endif
495 #endif


Bug issue 0002134 mentions “internalField()” being replaced by .ref() in later versions. I have OpenFoam-dev downloaded from: https://openfoam.org/download/dev-linux/ and use Ubuntu 14.04.

Seen the above code, I do not branch off to line 493 (EXTBRANCH==1 apparently).
OpenFoam works, I try to couple wave2Foam work with dynamic mesh motion implementing Jordi Muela’s notes. The library does not compile.
TagsNo tags attached.

Activities

henry

2017-03-02 23:32

manager   ~0007848

OceanWave3D.C is not part of OpenFOAM and not maintained by the OpenFOAM Foundation and contributors. You will need to ask the developer of this add-on for an updated version for OpenFOAM-dev.

Issue History

Date Modified Username Field Change
2017-03-02 23:20 Jacques New Issue
2017-03-02 23:32 henry Assigned To => henry
2017-03-02 23:32 henry Status new => closed
2017-03-02 23:32 henry Resolution open => no change required
2017-03-02 23:32 henry Note Added: 0007848