Writes a human-readable summary of the mesh connectivity and patches.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| type(case_params_t), | intent(in) | :: | params | |||
| type(flow_mpi_t), | intent(in) | :: | flow | |||
| type(mesh_t), | intent(in) | :: | mesh |
subroutine write_mesh_summary(params, flow, mesh) type(case_params_t), intent(in) :: params type(flow_mpi_t), intent(in) :: flow type(mesh_t), intent(in) :: mesh integer :: unit_id, p character(len=path_len + 32) :: filename if (flow%rank /= 0) return filename = trim(params%output_dir)//'/mesh_summary.txt' open(newunit=unit_id, file=trim(filename), status='replace', action='write') write(unit_id,'(a,i0)') 'points: ', mesh%npoints write(unit_id,'(a,i0)') 'cells: ', mesh%ncells write(unit_id,'(a,i0)') 'faces: ', mesh%nfaces write(unit_id,'(a,i0)') 'patches: ', mesh%npatches do p = 1, mesh%npatches write(unit_id,'(i0,1x,a,1x,i0)') mesh%patches(p)%id, trim(mesh%patches(p)%name), mesh%patches(p)%nfaces end do close(unit_id) end subroutine write_mesh_summary