46 USE deallocate_structures
51 TYPE (type_neoclassic
),
pointer :: neoclassicin1(:)
52 TYPE (type_neoclassic
),
pointer :: neoclassicin2(:)
53 TYPE (type_neoclassic
),
POINTER :: neoclassicout(:)
54 TYPE (type_compositions_type
) :: compositions
56 INTEGER,
PARAMETER :: nslice = 1
57 INTEGER :: nrho1, nrho2
60 INTEGER :: nimp, iimp, izimp
61 INTEGER,
ALLOCATABLE :: nzimp(:)
63 INTEGER,
ALLOCATABLE :: ncomp(:)
64 INTEGER,
ALLOCATABLE :: ntype(:)
71 nrho1 =
size(neoclassicin1(1)%rho_tor)
72 nrho2 =
size(neoclassicin2(1)%rho_tor)
76 allocate(neoclassicout(1))
77 call copy_cpo(neoclassicin1(1), neoclassicout(1))
81 if (
associated(neoclassicin2(1)%sigma))
then
82 if (
associated(neoclassicout(1)%sigma))
deallocate(neoclassicout(1)%sigma)
83 allocate(neoclassicout(1)%sigma(nrho1))
84 call
l3interp(neoclassicin2(1)%sigma, neoclassicin2(1)%rho_tor, nrho2, &
85 neoclassicout(1)%sigma, neoclassicout(1)%rho_tor, nrho1)
89 if (
associated(neoclassicin2(1)%jboot))
then
90 if (
associated(neoclassicout(1)%jboot))
deallocate(neoclassicout(1)%jboot)
91 allocate(neoclassicout(1)%jboot(nrho1))
92 call
l3interp(neoclassicin2(1)%jboot, neoclassicin2(1)%rho_tor, nrho2, &
93 neoclassicout(1)%jboot, neoclassicout(1)%rho_tor, nrho1)
subroutine join_neoclassic(NEOCLASSICin1, NEOCLASSICin2, NEOCLASSICout)
This routine joins CPOs.
subroutine l3interp(y_in, x_in, nr_in, y_out, x_out, nr_out)
This module contains routines for allocation/deallocation if CPOs used in ETS.