Working continuum metric calculation code
This commit is contained in:
parent
95e2ad0b4d
commit
6e08517697
8 changed files with 531 additions and 10 deletions
|
@ -747,24 +747,30 @@ module elements
|
|||
|
||||
!Allocate element arrays
|
||||
if (n > 0) then
|
||||
if (allocated(force_node)) then
|
||||
deallocate(force_node, virial_node, energy_node)
|
||||
end if
|
||||
allocate(force_node(3,max_basisnum, max_ng_node, n), &
|
||||
virial_node(6,max_basisnum, max_ng_node, n), &
|
||||
energy_node(max_basisnum,max_ng_node,n), &
|
||||
stat=allostat)
|
||||
if(allostat > 0) then
|
||||
print *, "Error allocating element data arrays in mode_metric becaus of:", allostat
|
||||
print *, "Error allocating element data arrays in mode_metric because of:", allostat
|
||||
stop
|
||||
end if
|
||||
|
||||
end if
|
||||
|
||||
if (m > 0) then
|
||||
if (allocated(force_atom)) then
|
||||
deallocate(force_atom, virial_atom, energy_atom)
|
||||
end if
|
||||
allocate(force_atom(3, m), &
|
||||
virial_atom(6, m), &
|
||||
energy_atom(m), &
|
||||
stat=allostat)
|
||||
if(allostat > 0) then
|
||||
print *, "Error allocating atom data arrays in mode_metric becaus of:", allostat
|
||||
print *, "Error allocating atom data arrays in mode_metric because of:", allostat
|
||||
stop
|
||||
end if
|
||||
end if
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue