Skip to content
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 parallel boundary statistics in SaveScalars #462

Merged
merged 1 commit into from
May 6, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 3 additions & 1 deletion fem/src/modules/SaveData/SaveScalars.F90
Original file line number Diff line number Diff line change
Expand Up @@ -2916,6 +2916,7 @@ SUBROUTINE BoundaryStatistics(Var, OperName, GotCoeff, &
TYPE(ValueList_t), POINTER :: Material
LOGICAL :: Stat, Permutated, NodalVar
INTEGER :: i,j,j2,k,p,q,t,DIM,bc,n,nd,hits,istat
INTEGER :: tmpDofs
INTEGER, TARGET :: Indexes(100)

IF( ASSOCIATED( Var % Perm ) ) THEN
Expand Down Expand Up @@ -2993,7 +2994,8 @@ SUBROUTINE BoundaryStatistics(Var, OperName, GotCoeff, &
IF( .NOT. FindMinMax .AND. IsParallel ) THEN
IF(ASSOCIATED( Var % Solver) ) THEN
IF( ASSOCIATED( Var % SOlver % Matrix ) ) THEN
IF( Var % Solver % Matrix % ParallelInfo % NeighbourList(NoDofs*(j2-1)+1) % Neighbours(1) /= ParEnv % MyPE ) CYCLE
tmpDofs=Var % Solver % Variable % Dofs
IF( Var % Solver % Matrix % ParallelInfo % NeighbourList(tmpDofs*(j2-1)+1) % Neighbours(1) /= ParEnv % MyPE ) CYCLE
END IF
END IF
END IF
Expand Down