new cannot satisfy memory request.
2 Attachment(s)
Dear fomers,
I faced a strange run-time error after doing some small modifications to the interFoam solver, (with a new name interNewFoam after modification) and some of the libraries relevant to the mixture viscosity calculation. All the libraries and the solver were compiled without any warning and error, but when I tried to run the interNewFoam solver on the damBreak tutorial case I faced the following error. Code:
new cannot satisfy memory request. 1- I modified the "incompressibleTwoPhaseMixture" library. 2- I modified the "immiscibleIncompressibleNewTwoPhaseMixture" library, and linked the modified library of step 1, to this library 3- I linked both of the above libraries to interNewFoam solver, and modified it as well. All the new files, with their new names, are attached. Having tried to solve this issue, I found out that the problem is coming from a very simple thing which is the initialization of two scalar variables. I defined two variables in my incompressibleNewTwoPhaseMixture.H as follows: Code:
const scalar k_; Code:
Foam::incompressibleTwoPhaseMixture::incompressibleTwoPhaseMixture Code:
void Foam::incompressibleTwoPhaseMixture::calcNu() I want to know why this error message appears for the first method (defining the variable in the header file and initializing them in the constructor), while it is a valid C++ variable definition. My src and applications directories, located in the $FOAM_RUN, containing only the two described libraries and the modified interNewFoam solver are attached below. Any comment is appreciated. |
All times are GMT -4. The time now is 17:21. |