-
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
fix: update m_weights
indexing in SurfaceElementStencil.hpp
#3474
base: develop
Are you sure you want to change the base?
fix: update m_weights
indexing in SurfaceElementStencil.hpp
#3474
Conversation
…s correct for intersected fractures
@liyangrock Do you have a small example problem you can add to the integrated tests that exercising intersecting fractures? |
if it is TPFA, k array just equals 0, 1 which is identical to the original formulation. but i think it is good to be consistent |
@Guotong-Ren Even in TPFA, if there are 3 fracture volumes connected to a "connector" the for loop: for( k[0]=0; k[0]<numPointsInFlux( iconn ); ++k[0] )
{
for( k[1]=k[0]+1; k[1]<numPointsInFlux( iconn ); ++k[1] )
{ results in the permutations of |
numPointsInFlux(iconn) = 2 for TPFA. (0,2) and (1,2) should be ruled out in the loop ending criterion? |
This is not the case for fractures. Each connection contains the |
I think we have one in there. Note that if all elements have same geometry differences won't be noticeable. |
We should modify it s.t. incorrect calculations will be obvious....this is an easy statement to make...perhaps harder to implement. |
Currently, I don’t have a small example problem related to intersecting fractures that can be added to the integrated tests. I’m not familiar with the integrated tests yet, but I’m open to exploring them. |
The PR fixes incorrect array indexing when accessing
m_weights
for intersected fractures.