ETS  \$Id: Doxyfile 2162 2020-02-26 14:16:09Z g2dpc $
 All Classes Files Functions Variables Pages
fc2k_changeocc.f90
Go to the documentation of this file.
1 ! + + + + + + + + + + + + + + + + + + + + + + + + + + + +
2 ! + + + + + + + + + + + + + + + + + + + + + + + + + + + +
3  SUBROUTINE changeocc &
4  (coreprof_in, coreprof_out, &
5  coretransp_in, coretransp_out, &
6  coresource_in, coresource_out, &
7  coreimpur_in, coreimpur_out, &
8  coreneutrals_in, coreneutrals_out, &
9  neoclassic_in, neoclassic_out, &
10  equilibrium_in, equilibrium_out, &
11  toroidfield_in, toroidfield_out)
12 
13 ! +++ Declaration of variables:
14  USE itm_types
15  USE euitm_schemas
16  USE copy_structures
17 
18 
19 ! +++ CPO derived types:
20  TYPE (type_coreprof), POINTER :: coreprof_in(:) !input CPO
21  TYPE (type_coreprof), POINTER :: coreprof_out(:) !output CPO
22  TYPE (type_coretransp), POINTER :: coretransp_in(:) !input CPO
23  TYPE (type_coretransp), POINTER :: coretransp_out(:) !output CPO
24  TYPE (type_coresource), POINTER :: coresource_in(:) !input CPO
25  TYPE (type_coresource), POINTER :: coresource_out(:) !output CPO
26  TYPE (type_coreimpur), POINTER :: coreimpur_in(:) !input CPO
27  TYPE (type_coreimpur), POINTER :: coreimpur_out(:) !output CPO
28  TYPE (type_coreneutrals), POINTER :: coreneutrals_in(:) !input CPO
29  TYPE (type_coreneutrals), POINTER :: coreneutrals_out(:) !output CPO
30  TYPE (type_neoclassic), POINTER :: neoclassic_in(:) !input CPO
31  TYPE (type_neoclassic), POINTER :: neoclassic_out(:) !output CPO
32  TYPE (type_equilibrium), POINTER :: equilibrium_in(:) !input CPO
33  TYPE (type_equilibrium), POINTER :: equilibrium_out(:) !output CPO
34  TYPE (type_toroidfield), POINTER :: toroidfield_in(:) !input CPO
35  TYPE (type_toroidfield), POINTER :: toroidfield_out(:) !output CPO
36 
37 ! +++ Allocate output CPOs:
38 ! IF(ASSOCIATED(COREPROF_OUT)) DEALLOCATE(COREPROF_OUT)
39 ! IF(ASSOCIATED(CORETRANSP_OUT)) DEALLOCATE(CORETRANSP_OUT)
40 ! IF(ASSOCIATED(CORESOURCE_OUT)) DEALLOCATE(CORESOURCE_OUT)
41 ! IF(ASSOCIATED(COREIMPUR_OUT)) DEALLOCATE(COREIMPUR_OUT)
42 ! IF(ASSOCIATED(CORENEUTRALS_OUT)) DEALLOCATE(CORENEUTRALS_OUT)
43 ! IF(ASSOCIATED(NEOCLASSIC_OUT)) DEALLOCATE(NEOCLASSIC_OUT)
44 ! IF(ASSOCIATED(EQUILIBRIUM_OUT)) DEALLOCATE(EQUILIBRIUM_OUT)
45 ! IF(ASSOCIATED(TOROIDFIELD_OUT)) DEALLOCATE(TOROIDFIELD_OUT)
46 
47  ALLOCATE(coreprof_out(1))
48  ALLOCATE(coretransp_out(1))
49  ALLOCATE(coresource_out(1))
50  ALLOCATE(coreimpur_out(1))
51  ALLOCATE(coreneutrals_out(1))
52  ALLOCATE(neoclassic_out(1))
53  ALLOCATE(equilibrium_out(1))
54  ALLOCATE(toroidfield_out(1))
55 
56 ! +++ Copy input CPOs to output CPOs:
57 
58  CALL copy_cpo(coreprof_in(1), coreprof_out(1))
59  CALL copy_cpo(coretransp_in(1), coretransp_out(1))
60  CALL copy_cpo(coresource_in(1), coresource_out(1))
61  CALL copy_cpo(coreimpur_in(1), coreimpur_out(1))
62  CALL copy_cpo(coreneutrals_in(1), coreneutrals_out(1))
63  CALL copy_cpo(neoclassic_in(1), neoclassic_out(1))
64  CALL copy_cpo(equilibrium_in(1), equilibrium_out(1))
65  CALL copy_cpo(toroidfield_in(1), toroidfield_out(1))
66 
67  RETURN
68 
69  END SUBROUTINE changeocc
70 ! + + + + + + + + + + + + + + + + + + + + + + + + + + + +
71 ! + + + + + + + + + + + + + + + + + + + + + + + + + + + +
72 
73 
74 
75 
76 
77 
78 
subroutine changeocc(COREPROF_IN, COREPROF_OUT, CORETRANSP_IN, CORETRANSP_OUT, CORESOURCE_IN, CORESOURCE_OUT, COREIMPUR_IN, COREIMPUR_OUT, CORENEUTRALS_IN, CORENEUTRALS_OUT, NEOCLASSIC_IN, NEOCLASSIC_OUT, EQUILIBRIUM_IN, EQUILIBRIUM_OUT, TOROIDFIELD_IN, TOROIDFIELD_OUT)