ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/group/trunk/OOPSE/libmdtools/neighborLists.F90
(Generate patch)

Comparing trunk/OOPSE/libmdtools/neighborLists.F90 (file contents):
Revision 459 by mmeineke, Fri Apr 4 19:57:01 2003 UTC vs.
Revision 480 by chuckv, Tue Apr 8 17:16:22 2003 UTC

# Line 6 | Line 6
6   !! @author Charles F. Vardeman II
7   !! @author Matthew Meineke
8   !! @author J. Daniel Gezelter
9 < !! @version $Id: neighborLists.F90,v 1.2 2003-04-04 19:57:01 mmeineke Exp $,
9 > !! @version $Id: neighborLists.F90,v 1.3 2003-04-08 17:16:22 chuckv Exp $,
10  
11   module neighborLists
12    
# Line 64 | Line 64 | contains
64           .not. associated(list) ) then
65         allocate(point(natoms),stat=alloc_error)
66         if (alloc_error /= 0) then
67 +          write(default_error,*) &
68 +               "ExpandNeighborLists: Error in allocating point"
69            error = -1
70            return
71         end if
72         allocate(list(listMultiplier * natoms),stat=alloc_error)
73         if (alloc_error /= 0) then
74 +          write(default_error,*) &
75 +               "ExpandNeighborLists: Error in allocating list"
76            error = -1
77            return
78         end if
# Line 81 | Line 85 | contains
85           .not. associated(list) ) then
86         allocate(point(getNRow(plan_row)),stat=alloc_error)
87         if (alloc_error /= 0) then
88 <          error = -1
88 >          write(default_error,*) &
89 >               "ExpandNeighborLists: Error in allocating MPI point"
90 >           error = -1
91            return
92         end if
93         allocate(list(listMultiplier * getNCol(plan_col)),stat=alloc_error)
94         if (alloc_error /= 0) then
95 +          write(default_error,*) &
96 +               "ExpandNeighborLists: Error in allocating MPI list"
97            error = -1
98            return
99         end if
# Line 99 | Line 107 | contains
107      
108      ! Check to see if we have exceeded the maximum number of allocations.
109      if (nAllocations > maxAllocations) then
110 +       write(default_error,*) &
111 +            "ExpandNeighborList: exceeded maximum number of re-allocations"
112         error = -1
113         return
114      else !! Expand the list.
115         oldSize = size(list)
116  
117 +
118   #ifdef IS_MPI !! MPI
119         newSize = listMultiplier * getNCol(plan_col) + oldSize
120   #else
# Line 151 | Line 162 | contains
162      real( kind = DP ) :: dispmx_tmp
163      real( kind = dp ) :: skin_thickness
164      integer :: nlocal
165 <    
165 >
166 >
167      nlocal = natoms
168      skin_thickness = rlist - rcut
169      dispmx = 0.0E0_DP
# Line 162 | Line 174 | contains
174         update_nlist = .true.
175         return
176      end if
177 <    
177 >
178 >
179   #ifdef MPI
180      
181      dispmx_tmp = 0.0E0_DP

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines