Closed francoishamon closed 3 years ago
Yes it's a known issue. I'll take care of that
What is the plot level of such an array4d ?
@francoishamon did pr #1131 solved the problem ?
@AntoineMazuyer Yes it solved the problem in the sense that VTK is no longer trying to output the array4d
that was causing the problem. Do you think there is a way to modify the VTK output so that it outputs this field (phaseCompFraction
)? Silo can output this field so it would be nice to have it with VTK as well.
@francoishamon it's an array2d isn't it ?
I can see
./constitutive/fluid/MultiFluidBase.hpp:159: arraySlice2d< real64 > const & phaseCompFraction,
when I grep but also ./constitutive/fluid/MultiFluidBase.hpp:277: arrayView4d< real64 const > const & phaseCompFraction() const { return m_phaseCompFraction;
The phaseCompFraction
is an array4d
with the following entries:
and the arraySlice2d
you saw is used for the point-wise update.
For the Silo output, the function that takes care of outputting phaseCompFraction
is:
https://github.com/GEOSX/GEOSX/blob/33e1a8dd6525f22ac87a6d60fee9f385cb7d7a15/src/coreComponents/fileIO/silo/SiloFile.cpp#L965-L972
Solved by PR #1131. Thanks @af1990 !
Describe the bug When trying to use the VTK output for a compositional simulation in the tutorials, I got the following error:
This happens when the VTK writer is trying to output an
array4d< real64 >
such asphaseCompFraction
.If I roll back one commit to go before PR #1106 (which fixed the allocation of the constitutive models), then the VTK writer does not try to output any of the
MultiFluid
properties and the VTK writer works.To Reproduce Steps to reproduce the behavior:
Expected behavior It should work, and preferably, output the constitutive properties.
Platform (please complete the following information):
Additional context
array4d
inDataTypes.hpp
, I get all sorts of compilation errors inDofManager
,FieldSpecification
, etc where theApplyArrayTypeLambda2
is used.@AntoineMazuyer any ideas?