MembraneFOAM RO BC warning
1 Attachment(s)
Hello everyone,
I'm trying to use the reverse osmosis boundary condition from MembraneFOAM, but I'm getting a warning when compiling. I'm using OpenFOAM v1912, and I dl the branch OF5 from MembraneFOAM git, available here, as suggested in a previous thread. I already did some changes : - syntax of writeIfDifferent function, which I copy-pasted from another BC (something like writeIfDifferent<word>( os , ... ) became os.writeIfDifferent<word>( ... ) ) - deleted the reference to the triSurface lib (because it's not in src anymore, I'll try with a dummy case see if it's a problem) - deleted the fm_ attribute and the calcFaceMapping() function. This is because I would like to use it as a boundary, and not a baffle. I essentially need the RO BC, so that's where we'll stick for now (except if something else is needed). So I want to compile the RO BC (sources files are attached), and I get a warning related to each constructor, as following : Code:
RO_BC/explicitROmembraneSolute/explicitROmembraneSoluteFvPatchScalarField.C:136:18: warning: ‘Foam::dimensioned<Type>::dimensioned(Foam::Istream&) [with Type = double]’ is deprecated: Since 2018-11 [-Wdeprecated-declarations] Code:
//- gradientBoundaryCoefficients Code:
explicitROmembraneSoluteFvPatchScalarField::explicitROmembraneSoluteFvPatchScalarField Even if it's not a critical problem (I can compile) I would be interested to correct this, and my very basic knowledge of C++ doesn't allow me to do so. Thank you in advance for your help! Léo |
Hi,
If fact the warning is about these lines: Code:
D_AB_Min_(transProps_.lookup("D_AB_Min")), Code:
D_AB_Min_("D_AB_Min", transProps_), |
Indeed, it works!
Thank you very much for your help! ;) For anyone passing by, I might commit these change to MembraneFoam in the future! Léo |
All times are GMT -4. The time now is 08:00. |