better readable
This commit is contained in:
parent
56ab4f723d
commit
b98ecccf73
|
@ -81,7 +81,7 @@ subroutine mesh_init
|
||||||
logical :: flag
|
logical :: flag
|
||||||
PetscSF :: sf
|
PetscSF :: sf
|
||||||
DM :: globalMesh
|
DM :: globalMesh
|
||||||
PetscInt :: face, nFaceSets
|
PetscInt :: nFaceSets
|
||||||
PetscInt, pointer :: pFaceSets(:)
|
PetscInt, pointer :: pFaceSets(:)
|
||||||
IS :: faceSetIS
|
IS :: faceSetIS
|
||||||
PetscErrorCode :: ierr
|
PetscErrorCode :: ierr
|
||||||
|
@ -112,9 +112,7 @@ subroutine mesh_init
|
||||||
call DMGetLabelIdIS(globalMesh,'Face Sets',faceSetIS,ierr)
|
call DMGetLabelIdIS(globalMesh,'Face Sets',faceSetIS,ierr)
|
||||||
CHKERRQ(ierr)
|
CHKERRQ(ierr)
|
||||||
if (nFaceSets > 0) call ISGetIndicesF90(faceSetIS,pFaceSets,ierr)
|
if (nFaceSets > 0) call ISGetIndicesF90(faceSetIS,pFaceSets,ierr)
|
||||||
do face = 1, nFaceSets
|
mesh_boundaries(1:nFaceSets) = pFaceSets(1:nFaceSets)
|
||||||
mesh_boundaries(face) = pFaceSets(face)
|
|
||||||
enddo
|
|
||||||
if (nFaceSets > 0) call ISRestoreIndicesF90(faceSetIS,pFaceSets,ierr)
|
if (nFaceSets > 0) call ISRestoreIndicesF90(faceSetIS,pFaceSets,ierr)
|
||||||
call MPI_Bcast(mesh_boundaries,mesh_Nboundaries,MPI_INTEGER,0,PETSC_COMM_WORLD,ierr)
|
call MPI_Bcast(mesh_boundaries,mesh_Nboundaries,MPI_INTEGER,0,PETSC_COMM_WORLD,ierr)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue