Nek5000
SEM for Incompressible NS
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
singlmesh.F90
Go to the documentation of this file.
1 !-----------------------------------------------------------------------
2 subroutine get_session_info(intracomm)
3  use mpif, only : mpi_comm_world
4  use size_m, only : nid
5  use input, only : session, path, series, ifneknek
6  use parallel, only : csize
7  implicit none
8 
9  integer :: mpi_is_initialized
10  integer :: ierr, intracomm
11 
12 ! Find out the session name:
13  call mpi_initialized(mpi_is_initialized, ierr) ! Initialize MPI
14  if ( mpi_is_initialized == 0 ) call mpi_init(ierr)
15 
16  call mpi_comm_dup(mpi_comm_world,intracomm,ierr)
17  call iniproc(intracomm)
18 
19  CALL blank(session,132)
20  CALL blank(path ,132)
21  CALL blank(series,132)
22 
23  ierr = 0
24  IF(nid == 0) THEN
25  OPEN (unit=8,file='SESSION.NAME',status='OLD',err=24)
26  READ(8,10) session
27  READ(8,10) path
28  READ(8,10, iostat=ierr) series
29  if (ierr < 0) call chcopy(series, session, 132)
30  ierr = 0
31  10 FORMAT(a132)
32  CLOSE(unit=8)
33  goto 23
34  24 CONTINUE
35  write(6,*) 'No file SESSION.NAME; using defaults of '
36  write(6,*) 'PATH=. and SESSION=NEK.'
37  path='.'
38  session='NEK'
39  ENDIF
40  23 continue
41 
42  call err_chk(ierr,' Cannot open SESSION.NAME!$')
43 
44  call bcast(session,132*csize)
45  call bcast(path,132*csize)
46  call bcast(series,132*csize)
47 
48  ifneknek = .false.
49 
50  return
51 end subroutine get_session_info
52 
53 !-----------------------------------------------------------------------
55 subroutine userchk_set_xfer
56  return
57 end subroutine userchk_set_xfer
58 
59 !-----------------------------------------------------------------------
61 subroutine setintercomm(nekcommtrue,nptrue)
62  implicit none
63  integer :: nekcommtrue, nptrue
64  return
65 end subroutine setintercomm
66 
67 !-----------------------------------------------------------------------
69 subroutine unsetintercomm(nekcommtrue,nptrue)
70  implicit none
71  integer :: nekcommtrue, nptrue
72  return
73 end subroutine unsetintercomm
74 !------------------------------------------------------------------------
76 subroutine uglmin(a,n)
77  use kinds, only : dp
78  implicit none
79  real(DP) :: a
80  integer :: n
81  return
82 end subroutine uglmin
83 !------------------------------------------------------------------------
85 subroutine happy_check(iflag)
86  implicit none
87  integer :: iflag
88  return
89 end subroutine happy_check
90 !------------------------------------------------------------------------
91 
92 
subroutine bcast(buf, len)
Definition: comm_mpi.F90:289
subroutine mpi_comm_dup(comm, comm_out, ierror)
Definition: mpi_dummy.F90:348
Input parameters from preprocessors.
Definition: input_mod.F90:11
subroutine mpi_init(ierror)
Definition: mpi_dummy.F90:575
subroutine setintercomm(nekcommtrue, nptrue)
Dummy for singlmesh.
Definition: singlmesh.F90:61
subroutine happy_check(iflag)
Dummy for singlmesh.
Definition: singlmesh.F90:85
subroutine get_session_info(intracomm)
Definition: singlmesh.F90:2
cleaned
Definition: parallel_mod.F90:2
subroutine unsetintercomm(nekcommtrue, nptrue)
Dummy for singlmesh.
Definition: singlmesh.F90:69
subroutine uglmin(a, n)
Dummy for singlmesh.
Definition: singlmesh.F90:76
subroutine blank(A, N)
blank a string
Definition: math.F90:38
subroutine iniproc(intracomm)
Definition: comm_mpi.F90:2
Definition: mpif.F90:1
subroutine chcopy(a, b, n)
Definition: math.F90:63
subroutine err_chk(ierr, istring)
Definition: comm_mpi.F90:356
subroutine userchk_set_xfer
Dummy for singlmesh.
Definition: singlmesh.F90:55
subroutine mpi_initialized(mpi_is_initialized, ierr)
Definition: mpi_dummy.F90:1048