CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Community Contributions (https://www.cfd-online.com/Forums/openfoam-community-contributions/)
-   -   [waves2Foam] Compiling with OF 3.0.0: "error: ‘adjustTimeStep’ was not declared in this scope" (https://www.cfd-online.com/Forums/openfoam-community-contributions/205856-compiling-3-0-0-error-adjusttimestep-not-declared-scope.html)

jbshim November 5, 2015 08:39

Compiling with OF 3.0.0: "error: ‘adjustTimeStep’ was not declared in this scope"
 
1 Attachment(s)
Dear all,

I am new to OpenFoam, and want to compute a problem including a free surface using waves2foam.

First, I compiled and installed openFOAM-3.0.0 in my personal directory, and put the wave2foam source in the working directory of mine and tried to compile it. However I have got the following error messages

"
/home/jbshim/OpenFOAM/OpenFOAM-3.0.0/src/finiteVolume/lnInclude/readTimeControls.H:32:1: error: ‘adjustTimeStep’ was not declared in this scope
adjustTimeStep =
^
/home/jbshim/OpenFOAM/OpenFOAM-3.0.0/src/finiteVolume/lnInclude/readTimeControls.H:35:1: error: ‘maxCo’ was not declared in this scope
maxCo =
^
/home/jbshim/OpenFOAM/OpenFOAM-3.0.0/src/finiteVolume/lnInclude/readTimeControls.H:38:1: error: ‘maxDeltaT’ was not declared in this scope
maxDeltaT =
^
"

Also, at the end of each step, the compilation was terminated because

"
/home/jbshim/OpenFOAM/OpenFOAM-3.0.0/src/finiteVolume/lnInclude/cyclicAMIFvPatch.H:39:35: fatal error: cyclicAMILduInterface.H: No such file or directory
#include "cyclicAMILduInterface.H"
"

There were also a coupled of other errors, but seemed all related to the above one.

I attached the whole log of the compilation to the posting. If anyone can give me any help, I will really appreciate it.

Jeongbo Shim.

ngj November 5, 2015 09:06

Hallo Jeongbo,

I had not even seen that OpenFoam-3.0.0 was released. I can see from the release notes that there has been made a lot of changes with respect to code organisation. Consequently, I do not know, when I can come up with a cross-version compatible version of waves2Foam.

Furthermore, version numbering is now coinciding with the foam-extend branch, so it will be tricky to get the cross-version compatibility working.

Kind regards,

Niels

2vdba2 May 3, 2016 00:41

Quote:

Originally Posted by jbshim (Post 572039)
Dear all,

I am new to OpenFoam, and want to compute a problem including a free surface using waves2foam.

First, I compiled and installed openFOAM-3.0.0 in my personal directory, and put the wave2foam source in the working directory of mine and tried to compile it. However I have got the following error messages

"
/home/jbshim/OpenFOAM/OpenFOAM-3.0.0/src/finiteVolume/lnInclude/readTimeControls.H:32:1: error: ‘adjustTimeStep’ was not declared in this scope
adjustTimeStep =
^
/home/jbshim/OpenFOAM/OpenFOAM-3.0.0/src/finiteVolume/lnInclude/readTimeControls.H:35:1: error: ‘maxCo’ was not declared in this scope
maxCo =
^
/home/jbshim/OpenFOAM/OpenFOAM-3.0.0/src/finiteVolume/lnInclude/readTimeControls.H:38:1: error: ‘maxDeltaT’ was not declared in this scope
maxDeltaT =
^
"

Also, at the end of each step, the compilation was terminated because

"
/home/jbshim/OpenFOAM/OpenFOAM-3.0.0/src/finiteVolume/lnInclude/cyclicAMIFvPatch.H:39:35: fatal error: cyclicAMILduInterface.H: No such file or directory
#include "cyclicAMILduInterface.H"
"

There were also a coupled of other errors, but seemed all related to the above one.

I attached the whole log of the compilation to the posting. If anyone can give me any help, I will really appreciate it.

Jeongbo Shim.

I have the same problem you have with installing viscoelasticFluidFoam. I think that if you use any 2.x openfoam it will work.

ngj May 3, 2016 02:12

Good morning,

waves2Foam does compile on OpenFoam-3.0.0, so there is not need to downgrade. The supported versions are mentioned on the Wiki-page.

The error message is weird, as I have just successfully compiled on 3.0.0 this very weekend.

Kind regards,

Niels


All times are GMT -4. The time now is 12:18.