Changeset 38d77eb for main_bgl_p.f
- Timestamp:
- 11/19/09 11:29:48 (14 years ago)
- Branches:
- master
- Children:
- 7137e5d
- Parents:
- 32289cd
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main_bgl_p.f
r32289cd r38d77eb 57 57 call mpi_init(ierr) 58 58 ! call pmi_cart_comm_create(comm_cart,ierr) 59 write (*,*) "Initialized MPI. Now setting up communicators."59 write (logString, *) "Initialized MPI. Now setting up communicators." 60 60 call flush(6) 61 61 ndims = 4 … … 81 81 call MPI_Cart_GET(comm_cart, ndims, dims, periods, coords, ierr) 82 82 83 write (*,*) ndims, dims, periods, coords83 write (logString, *) ndims, dims, periods, coords 84 84 call flush(6) 85 85 ! call VTSetup() … … 192 192 & + (coords(3)/ldims(3))*nblock(1)*nblock(2) 193 193 194 write (*,*) myrank, color, ldims, nblock194 write (logString, *) myrank, color, ldims, nblock 195 195 196 196 call mpi_comm_split(comm_cart,color,myrank,local_comm,ierr) … … 216 216 ! call mpi_group_range_incl(group_world, 1, proc_range, group(i) 217 217 ! & ,error) 218 ! write ( *,*) "Assigning rank ", j, proc_range,218 ! write (logString, *) "Assigning rank ", j, proc_range, 219 219 ! & "to group", group(i) 220 220 ! call flush(6) … … 227 227 ! my_mpi_comm = comm(i) 228 228 ! rep_id = i - 1 229 ! write ( *,*) rep_id, "has comm", my_mpi_comm229 ! write (logString, *) rep_id, "has comm", my_mpi_comm 230 230 ! call flush(6) 231 231 ! endif … … 233 233 ! 234 234 ! c Setup the communicator used for parallel tempering 235 ! write ( *,*) "PTGroup=", ranks(:num_replica)235 ! write (logString, *) "PTGroup=", ranks(:num_replica) 236 236 ! call flush(6) 237 237 ! call mpi_group_incl(group_world, num_replica, ranks, group_partem, … … 241 241 ! 242 242 ! if (partem_comm.ne.MPI_COMM_NULL) then 243 ! write ( *,*) partem_comm,myrank, "is master for ", rep_id, "."243 ! write (logString, *) partem_comm,myrank, "is master for ", rep_id, "." 244 244 ! endif 245 245 … … 247 247 call mpi_comm_size(my_mpi_comm,no,ierr) 248 248 rep_id = color 249 write ( *,*) "My new rank is ", myrank, "of", no249 write (logString, *) "My new rank is ", myrank, "of", no 250 250 call flush(6) 251 251 if (myrank.eq.0) then 252 252 color = 1 253 write ( *,*) 'My rank and color:', myrank, color253 write (logString, *) 'My rank and color:', myrank, color 254 254 call flush(6) 255 255 else … … 258 258 call mpi_comm_split(comm_cart,color,0,partem_comm,ierr) 259 259 260 ! write (*,*) "Finalizing MPI."260 ! write (logString, *) "Finalizing MPI." 261 261 ! call flush(6) 262 262 ! CALL mpi_finalize(ierr) … … 295 295 296 296 ! ======================================== start of parallel tempering run 297 write ( *,*) "There are ", no,297 write (logString, *) "There are ", no, 298 298 & " processors available for ",rep_id 299 299 call flush(6) … … 309 309 310 310 if(my_pt_rank.eq.0) then 311 write (*,*) "time for simulation using ", num_proc,311 write (logString, *) "time for simulation using ", num_proc, 312 312 & " processors =", endwtime - startwtime, " seconds" 313 313 call flush(6)
Note:
See TracChangeset
for help on using the changeset viewer.