2 |
|
!! Corresponds to the force field defined in lj_FF.cpp |
3 |
|
!! @author Charles F. Vardeman II |
4 |
|
!! @author Matthew Meineke |
5 |
< |
!! @version $Id: lj_FF.F90,v 1.14 2003-01-30 20:03:36 chuckv Exp $, $Date: 2003-01-30 20:03:36 $, $Name: not supported by cvs2svn $, $Revision: 1.14 $ |
5 |
> |
!! @version $Id: lj_FF.F90,v 1.15 2003-01-30 22:29:37 chuckv Exp $, $Date: 2003-01-30 22:29:37 $, $Name: not supported by cvs2svn $, $Revision: 1.15 $ |
6 |
|
|
7 |
|
|
8 |
|
|
133 |
|
status = 0 |
134 |
|
|
135 |
|
|
136 |
+ |
|
137 |
|
|
137 |
– |
|
138 |
|
!! if were're not in MPI, we just update ljatypePtrList |
139 |
|
#ifndef IS_MPI |
140 |
|
call create_IdentPtrlst(ident,ljListHead,identPtrList,thisStat) |
167 |
|
endif |
168 |
|
nrow = getNrow(plan_row) |
169 |
|
ncol = getNcol(plan_col) |
170 |
+ |
|
171 |
|
!! Allocate temperary arrays to hold gather information |
172 |
|
allocate(identRow(nrow),stat=alloc_stat) |
173 |
|
if (alloc_stat /= 0 ) then |
185 |
|
|
186 |
|
call gather(ident,identRow,plan_row) |
187 |
|
call gather(ident,identCol,plan_col) |
188 |
+ |
|
189 |
|
|
188 |
– |
|
190 |
|
!! Create row and col pointer lists |
191 |
|
|
192 |
|
call create_IdentPtrlst(identRow,ljListHead,identPtrListRow,thisStat) |
200 |
|
status = -1 |
201 |
|
return |
202 |
|
endif |
203 |
< |
|
203 |
> |
write(*,*) "After createIdent row-col lists" |
204 |
|
!! free temporary ident arrays |
205 |
< |
deallocate(identCol) |
206 |
< |
deallocate(identRow) |
207 |
< |
|
205 |
> |
if (allocated(identCol)) then |
206 |
> |
deallocate(identCol) |
207 |
> |
end if |
208 |
> |
if (allocated(identCol)) then |
209 |
> |
deallocate(identRow) |
210 |
> |
endif |
211 |
|
|
212 |
|
!! Allocate neighbor lists for mpi simulations. |
213 |
|
if (.not. allocated(point)) then |