-
Notifications
You must be signed in to change notification settings - Fork 89
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: Implement EDFM loading from VTK (serial only) #3082
base: develop
Are you sure you want to change the base?
Conversation
8dc1a32
to
041d290
Compare
Implement serial loading (fails on MPI) and tested it on a 2.5D EDFM case. Below is an input example containing 2 fracture elements:
<?xml version="1.0"?>
<VTKFile type="UnstructuredGrid" version="0.1" byte_order="LittleEndian" header_type="UInt32" compressor="vtkZLibDataCompressor">
<UnstructuredGrid>
<Piece NumberOfPoints="6" NumberOfCells="2">
<PointData>
<DataArray type="Int32" Name="fracture_ids_points" NumberOfComponents="1" format="ascii">
0
1
2
3
4
5
</DataArray>
</PointData>
<CellData>
<DataArray type="Int32" Name="fracture_to_parent_matrix_cell_mapping" NumberOfComponents="2" format="ascii">
0 4
1 13
</DataArray>
<DataArray type="Float32" Name="permeability" NumberOfComponents="1" format="ascii" RangeMin="0.1" RangeMax="0.1">
0.1
0.1
</DataArray>
<DataArray type="Float32" Name="aperture" NumberOfComponents="1" format="ascii" RangeMin="0.0001" RangeMax="0.0001">
0.0001
0.0001
</DataArray>
<DataArray type="Float32" Name="tangential_width_vectors" NumberOfComponents="3" format="ascii">
0 0 1
0 0 1
</DataArray>
<DataArray type="Float32" Name="tangential_length_vectors" NumberOfComponents="3" format="ascii">
0 1 0
0 1 0
</DataArray>
<DataArray type="Float32" Name="normal_vectors" NumberOfComponents="3" format="ascii">
1 0 0
1 0 0
</DataArray>
</CellData>
<Points>
<DataArray type="Float32" Name="Points" NumberOfComponents="3" format="ascii" RangeMin="0" RangeMax="1">
0.5 0.3333 0
0.5 0.6666 0
0.5 0.3333 0.5
0.5 0.6666 0.5
0.5 0.3333 1
0.5 0.6666 1
<InformationKey name="L2_NORM_RANGE" location="vtkDataArray" length="2">
<Value index="0">
0
</Value>
<Value index="1">
1
</Value>
</InformationKey>
</DataArray>
</Points>
<Cells>
<DataArray type="Int64" Name="connectivity" format="ascii" RangeMin="0" RangeMax="5">
1 0 2 3
3 2 4 5
</DataArray>
<DataArray type="Int64" Name="offsets" format="ascii" RangeMin="4" RangeMax="8">
4
8
</DataArray>
<DataArray type="UInt8" Name="types" format="ascii" RangeMin="9" RangeMax="9">
9
9
</DataArray>
</Cells>
</Piece>
</UnstructuredGrid>
</VTKFile> |
@CusiniM and @rrsettgast please have a look |
meshBody.deregisterCellBlockManager(); | ||
// Cell block manager is needed for EDFM loading from VTK | ||
// Can't be deregistred here | ||
//meshBody.deregisterCellBlockManager(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
TODO restore that
@CusiniM, @castelletto1, @corbett5, @jhuang2601, @rrsettgast, @untereiner, and/or @wrtobin please have a look |
@paveltomin @ouassimkh Please remember to post a copy of the error message you get in parallel. Thanks! |
@rrsettgast @CusiniM parallel run crash
|
//1.Get EDFM vertices | ||
vtkUnstructuredGrid * grid = vtkUnstructuredGrid::SafeDownCast( embeddedSurfaceMesh ); | ||
vtkPoints * const nodes = grid->GetPoints(); | ||
vtkIdType numNodes = nodes->GetNumberOfPoints(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
parallel crash seems to happen here
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
for some reason GetPoints
is null for one of the two ranks
Rank 1: grid->GetPoints() = 0x7fffca3fb8f0
Rank 0: grid->GetPoints() = 0
Just wondering why was the branch closed? is it merged ? |
No description provided.