- Timestamp:
- 11/19/09 11:29:48 (14 years ago)
- Branches:
- master
- Children:
- 7137e5d
- Parents:
- 32289cd
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main_p.f
r32289cd r38d77eb 151 151 call mpi_group_range_incl(group_world, 1, proc_range, group(i) 152 152 & ,error) 153 write ( *,*) "Assigning rank ", j, proc_range,153 write (logString, *) "Assigning rank ", j, proc_range, 154 154 & "to group", group(i) 155 155 call flush(6) … … 162 162 my_mpi_comm = comm(i) 163 163 rep_id = i - 1 164 write ( *,*) rep_id, "has comm", my_mpi_comm164 write (logString, *) rep_id, "has comm", my_mpi_comm 165 165 call flush(6) 166 166 endif … … 168 168 169 169 ! Setup the communicator used for parallel tempering 170 write ( *,*) "PTGroup=", ranks(:num_replica)170 write (logString, *) "PTGroup=", ranks(:num_replica) 171 171 call flush(6) 172 172 call mpi_group_incl(group_world, num_replica, ranks, group_partem, … … 176 176 177 177 if (partem_comm.ne.MPI_COMM_NULL) then 178 write (*,*) partem_comm,myrank, "is master for ", rep_id, "." 178 write (logString, *) partem_comm,myrank, "is master for ", 179 & rep_id, "." 179 180 endif 180 181 … … 182 183 call mpi_comm_size(my_mpi_comm,no,ierr) 183 184 184 write ( *,*) "My new rank is ", myrank, "of", no185 write (logString, *) "My new rank is ", myrank, "of", no 185 186 call flush(6) 186 187 ! = Done setting up communicators ===================================== … … 220 221 221 222 ! ======================================== start of parallel tempering run 222 write ( *,*) "There are ", no,223 write (logString, *) "There are ", no, 223 224 & " processors available for ",rep_id 224 225 call flush(6) … … 234 235 235 236 if(my_pt_rank.eq.0) then 236 write (*,*) "time for simulation using ", num_proc,237 write (logString, *) "time for simulation using ", num_proc, 237 238 & " processors =", endwtime - startwtime, " seconds" 238 239 call flush(6)
Note:
See TracChangeset
for help on using the changeset viewer.