Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 9 additions & 1 deletion src/coreComponents/finiteVolume/FaceElementToCellStencil.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -271,7 +271,15 @@ inline void FaceElementToCellStencilWrapper::

// Will change when implementing collocation points.
LvArray::tensorOps::hadamardProduct< 3 >( faceConormal, coefficient[er0][esr0][ei0][0], m_faceNormal[iconn] );
real64 const t0 = m_weights[iconn][0] * LvArray::tensorOps::AiBi< 3 >( m_cellToFaceVec[iconn], faceConormal );
real64 t0 = m_weights[iconn][0] * LvArray::tensorOps::AiBi< 3 >( m_cellToFaceVec[iconn], faceConormal );
if( t0 < 0.0 )
{
LvArray::tensorOps::hadamardProduct< 3 >( faceConormal,
coefficient[er0][esr0][ei0][0],
m_cellToFaceVec[iconn] );
t0 = m_weights[iconn][0] * LvArray::tensorOps::AiBi< 3 >( m_cellToFaceVec[iconn], faceConormal );
}

// We consider the 3rd component of the permeability which is the normal one.
real64 const t1 = m_weights[iconn][1] * coefficient[er1][esr1][ei1][0][2];

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
#include <vtkExtractEdges.h>
#include <vtkGeometryFilter.h>
#include <vtkPointData.h>
#include <vtkLogger.h>

#include <algorithm>

Expand Down Expand Up @@ -624,11 +625,15 @@ void importFractureNetwork( string const & faceBlockName,
CollocatedNodes const collocatedNodes( faceBlockName, faceMesh );
// Add the appropriate validations (only 2d cells...)

// Only log warnings and more critical messages from the edge extractor
vtkLogger::SetStderrVerbosity( vtkLogger::VERBOSITY_WARNING );
auto edgesExtractor = vtkSmartPointer< vtkExtractEdges >::New();
edgesExtractor->SetInputData( faceMesh );
edgesExtractor->UseAllPointsOn(); // Important: we want to prevent any node renumbering.
edgesExtractor->Update();
vtkPolyData * edges = edgesExtractor->GetOutput();
// Reset logging to default
vtkLogger::SetStderrVerbosity( vtkLogger::VERBOSITY_INFO );

vtkIdType const num2dFaces = edges->GetNumberOfCells();
vtkIdType const num2dElements = faceMesh->GetNumberOfCells();
Expand Down
Loading