git-svn-id: svn://svn.icms.temple.edu/lammps-ro/trunk@421 f3b2605a-c512-4ea7-a41b-209d697bcdaa
This commit is contained in:
@ -11,7 +11,7 @@ SHELL = /bin/sh
|
|||||||
|
|
||||||
# ------ FILES ------
|
# ------ FILES ------
|
||||||
|
|
||||||
SRC = meam_data.F meam_setup_done.F meam_setup_global.F meam_setup_param.F meam_dens_init.F meam_dens_final.F meam_force.F
|
SRC = meam_data.F meam_setup_done.F meam_setup_global.F meam_setup_param.F meam_dens_init.F meam_dens_final.F meam_force.F meam_cleanup.F
|
||||||
|
|
||||||
FILES = $(SRC) Makefile
|
FILES = $(SRC) Makefile
|
||||||
|
|
||||||
@ -23,7 +23,7 @@ OBJ = $(SRC:.F=.o)
|
|||||||
# ------ SETTINGS ------
|
# ------ SETTINGS ------
|
||||||
|
|
||||||
F90 = gfortran
|
F90 = gfortran
|
||||||
F90FLAGS = -g -fno-second-underscore
|
F90FLAGS = -O -fno-second-underscore
|
||||||
#F90FLAGS = -O
|
#F90FLAGS = -O
|
||||||
ARCHIVE = ar
|
ARCHIVE = ar
|
||||||
ARCHFLAG = -rc
|
ARCHFLAG = -rc
|
||||||
|
|||||||
@ -11,7 +11,7 @@ SHELL = /bin/sh
|
|||||||
|
|
||||||
# ------ FILES ------
|
# ------ FILES ------
|
||||||
|
|
||||||
SRC = meam_data.F meam_setup_done.F meam_setup_global.F meam_setup_param.F meam_dens_init.F meam_dens_final.F meam_force.F
|
SRC = meam_data.F meam_setup_done.F meam_setup_global.F meam_setup_param.F meam_dens_init.F meam_dens_final.F meam_force.F meam_cleanup.F
|
||||||
|
|
||||||
FILES = $(SRC) Makefile
|
FILES = $(SRC) Makefile
|
||||||
|
|
||||||
|
|||||||
@ -11,7 +11,7 @@ SHELL = /bin/sh
|
|||||||
|
|
||||||
# ------ FILES ------
|
# ------ FILES ------
|
||||||
|
|
||||||
SRC = meam_data.F meam_setup_done.F meam_setup_global.F meam_setup_param.F meam_dens_init.F meam_dens_final.F meam_force.F
|
SRC = meam_data.F meam_setup_done.F meam_setup_global.F meam_setup_param.F meam_dens_init.F meam_dens_final.F meam_force.F meam_cleanup.F
|
||||||
|
|
||||||
FILES = $(SRC) Makefile
|
FILES = $(SRC) Makefile
|
||||||
|
|
||||||
@ -23,7 +23,7 @@ OBJ = $(SRC:.F=.o)
|
|||||||
# ------ SETTINGS ------
|
# ------ SETTINGS ------
|
||||||
|
|
||||||
F90 = gfortran
|
F90 = gfortran
|
||||||
F90FLAGS = -g -fno-second-underscore
|
F90FLAGS = -O -fno-second-underscore
|
||||||
#F90FLAGS = -O
|
#F90FLAGS = -O
|
||||||
ARCHIVE = ar
|
ARCHIVE = ar
|
||||||
ARCHFLAG = -rc
|
ARCHFLAG = -rc
|
||||||
|
|||||||
@ -11,7 +11,7 @@ SHELL = /bin/sh
|
|||||||
|
|
||||||
# ------ FILES ------
|
# ------ FILES ------
|
||||||
|
|
||||||
SRC = meam_data.F meam_setup_done.F meam_setup_global.F meam_setup_param.F meam_dens_init.F meam_dens_final.F meam_force.F
|
SRC = meam_data.F meam_setup_done.F meam_setup_global.F meam_setup_param.F meam_dens_init.F meam_dens_final.F meam_force.F meam_cleanup.F
|
||||||
|
|
||||||
FILES = $(SRC) Makefile
|
FILES = $(SRC) Makefile
|
||||||
|
|
||||||
|
|||||||
26
lib/meam/meam_cleanup.F
Normal file
26
lib/meam/meam_cleanup.F
Normal file
@ -0,0 +1,26 @@
|
|||||||
|
c Declaration in pair_meam.h:
|
||||||
|
c
|
||||||
|
c void meam_cleanup()
|
||||||
|
c
|
||||||
|
c Call from PairMEAM destructor
|
||||||
|
c
|
||||||
|
c meam_cleanup()
|
||||||
|
c
|
||||||
|
|
||||||
|
subroutine meam_cleanup
|
||||||
|
use meam_data
|
||||||
|
implicit none
|
||||||
|
|
||||||
|
integer dealloc_error
|
||||||
|
|
||||||
|
deallocate(phir,STAT=dealloc_error)
|
||||||
|
deallocate(phirar,STAT=dealloc_error)
|
||||||
|
deallocate(phirar1,STAT=dealloc_error)
|
||||||
|
deallocate(phirar2,STAT=dealloc_error)
|
||||||
|
deallocate(phirar3,STAT=dealloc_error)
|
||||||
|
deallocate(phirar4,STAT=dealloc_error)
|
||||||
|
deallocate(phirar5,STAT=dealloc_error)
|
||||||
|
deallocate(phirar6,STAT=dealloc_error)
|
||||||
|
|
||||||
|
return
|
||||||
|
end
|
||||||
Reference in New Issue
Block a user