41 CHARACTER(len=default_path_length) :: temperature_function =
""
42 CHARACTER(len=default_string_length),
DIMENSION(:),
ALLOCATABLE :: temperature_function_parameters
43 INTEGER :: region_index = 0, npart = 0
44 INTEGER,
DIMENSION(:),
ALLOCATABLE :: part_index
45 REAL(kind=
dp) :: ekin = 0.0_dp, noisy_gamma_region = 0.0_dp, temperature = 0.0_dp, temp_expected = 0.0_dp, temp_tol = 0.0_dp
46 REAL(kind=
dp),
DIMENSION(:),
ALLOCATABLE :: temperature_function_values
74 IF (
ASSOCIATED(thermal_regions%thermal_region))
THEN
75 DO ireg = 1,
SIZE(thermal_regions%thermal_region)
76 IF (
ALLOCATED(thermal_regions%thermal_region(ireg)%part_index))
THEN
77 DEALLOCATE (thermal_regions%thermal_region(ireg)%part_index)
79 IF (
ALLOCATED(thermal_regions%thermal_region(ireg)%temperature_function_parameters))
THEN
80 DEALLOCATE (thermal_regions%thermal_region(ireg)%temperature_function_parameters)
82 IF (
ALLOCATED(thermal_regions%thermal_region(ireg)%temperature_function_values))
THEN
83 DEALLOCATE (thermal_regions%thermal_region(ireg)%temperature_function_values)
86 DEALLOCATE (thermal_regions%thermal_region)
88 IF (
ASSOCIATED(thermal_regions%do_langevin))
THEN
89 DEALLOCATE (thermal_regions%do_langevin)