atomes 1.1.15
atomes: an atomic scale modeling tool box
Loading...
Searching...
No Matches
clean.F90
Go to the documentation of this file.
1! This file is part of the 'atomes' software.
2!
3! 'atomes' is free software: you can redistribute it and/or modify it under the terms
4! of the GNU Affero General Public License as published by the Free Software Foundation,
5! either version 3 of the License, or (at your option) any later version.
6!
7! 'atomes' is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
8! without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
9! See the GNU General Public License for more details.
10!
11! You should have received a copy of the GNU Affero General Public License along with 'atomes'.
12! If not, see <https://www.gnu.org/licenses/>
13!
14! Copyright (C) 2022-2024 by CNRS and University of Strasbourg
15!
20
21#if defined (HAVE_CONFIG_H)
22# include <config.h>
23#endif
24#include "version.h"
25
26SUBROUTINE profree () bind (C,NAME='profree_')
27
28USE parameters
29
30IMPLICIT NONE
31
32! deallocation of possibly remaining data
33
34if (allocated(fullpos)) deallocate(fullpos)
35if (allocated(tab_of_type)) deallocate(tab_of_type)
36if (allocated(lot)) deallocate(lot)
37if (allocated(nbspbs)) deallocate(nbspbs)
38if (allocated(tl)) deallocate(tl)
39if (allocated(atomid)) deallocate(atomid)
40if (allocated(mass)) deallocate(mass)
41if (allocated(rvdw)) deallocate(rvdw)
42if (allocated(xi)) deallocate(xi)
43
44END SUBROUTINE
subroutine profree()
Definition clean.F90:27
double precision, dimension(:,:,:), allocatable fullpos
double precision, dimension(:), allocatable mass
character(len=2), dimension(:), allocatable tab_of_type
double precision, dimension(:), allocatable xi
character(len=2), dimension(:), allocatable tl
integer, dimension(:), allocatable nbspbs
integer, dimension(:), allocatable atomid
integer, dimension(:), allocatable lot
double precision, dimension(:), allocatable rvdw