Debian Codegraph @

07p/gui/aut.f90

raw symbols SCIP
1 !----------------------------------------------------------------------
2 !----------------------------------------------------------------------
3 ! aut.f90 : Model AUTO-equations file
4 !----------------------------------------------------------------------
5 !----------------------------------------------------------------------
6
7 SUBROUTINE FUNC(NDIM,U,ICP,PAR,IJAC,F,DFDU,DFDP)
8 ! ---------- ----
9 !
10 ! Evaluates the algebraic equations or ODE right hand side
11 !
12 ! Input arguments :
13 ! NDIM : Dimension of the algebraic or ODE system
14 ! U : State variables
15 ! ICP : Array indicating the free parameter(s)
16 ! PAR : Equation parameters
17 !
18 ! Values to be returned :
19 ! F : Equation or ODE right hand side values
20 !
21 ! Normally unused Jacobian arguments : IJAC, DFDU, DFDP (see manual)
22
23 IMPLICIT NONE
24 INTEGER, INTENT(IN) :: NDIM, IJAC, ICP(*)
25 DOUBLE PRECISION, INTENT(IN) :: U(NDIM), PAR(*)
26 DOUBLE PRECISION, INTENT(OUT) :: F(NDIM)
27 DOUBLE PRECISION, INTENT(INOUT) :: DFDU(NDIM,NDIM),DFDP(NDIM,*)
28
29 F(1)= ....
30 F(2)= ....
31
32 END SUBROUTINE FUNC
33 !----------------------------------------------------------------------
34 !----------------------------------------------------------------------
35
36 SUBROUTINE STPNT(NDIM,U,PAR)
37 ! ---------- -----
38 !
39 ! Input arguments :
40 ! NDIM : Dimension of the algebraic or ODE system
41 !
42 ! Values to be returned :
43 ! U : A starting solution vector
44 ! PAR : The corresponding equation-parameter values
45 !
46 ! Note : For time- or space-dependent solutions this subroutine has
47 ! arguments (NDIM,U,PAR,T), where the scalar input parameter T
48 ! contains the varying time or space variable value.
49
50 IMPLICIT NONE
51 INTEGER, INTENT(IN) :: NDIM
52 DOUBLE PRECISION, INTENT(INOUT) :: U(NDIM),PAR(*)
53 DOUBLE PRECISION, INTENT(IN) :: T
54
55 ! Initialize the equation parameters
56 PAR(1)= ....
57 PAR(2)= ....
58
59 ! Initialize the solution
60 U(1)= ....
61 U(2)= ....
62
63 END SUBROUTINE STPNT
64 !----------------------------------------------------------------------
65 !----------------------------------------------------------------------
66
67 SUBROUTINE BCND(NDIM,PAR,ICP,NBC,U0,U1,FB,IJAC,DBC)
68 ! ---------- ----
69 !
70 ! Boundary Conditions
71 !
72 ! Input arguments :
73 ! NDIM : Dimension of the ODE system
74 ! PAR : Equation parameters
75 ! ICP : Array indicating the free parameter(s)
76 ! NBC : Number of boundary conditions
77 ! U0 : State variable values at the left boundary
78 ! U1 : State variable values at the right boundary
79 !
80 ! Values to be returned :
81 ! FB : The values of the boundary condition functions
82 !
83 ! Normally unused Jacobian arguments : IJAC, DBC (see manual)
84
85 IMPLICIT NONE
86 INTEGER, INTENT(IN) :: NDIM, ICP(*), NBC, IJAC
87 DOUBLE PRECISION, INTENT(IN) :: PAR(*), U0(NDIM), U1(NDIM)
88 DOUBLE PRECISION, INTENT(OUT) :: FB(NBC)
89 DOUBLE PRECISION, INTENT(INOUT) :: DBC(NBC,*)
90
91 !XXX FB(1)=
92 !XXX FB(2)=
93
94 END SUBROUTINE BCND
95 !----------------------------------------------------------------------
96 !----------------------------------------------------------------------
97
98 SUBROUTINE ICND(NDIM,PAR,ICP,NINT,U,UOLD,UDOT,UPOLD,FI,IJAC,DINT)
99 ! ---------- ----
100 !
101 ! Integral Conditions
102 !
103 ! Input arguments :
104 ! NDIM : Dimension of the ODE system
105 ! PAR : Equation parameters
106 ! ICP : Array indicating the free parameter(s)
107 ! NINT : Number of integral conditions
108 ! U : Value of the vector function U at `time' t
109 !
110 ! The following input arguments, which are normally not needed,
111 ! correspond to the preceding point on the solution branch
112 ! UOLD : The state vector at 'time' t
113 ! UDOT : Derivative of UOLD with respect to arclength
114 ! UPOLD : Derivative of UOLD with respect to `time'
115 !
116 ! Normally unused Jacobian arguments : IJAC, DINT
117 !
118 ! Values to be returned :
119 ! FI : The value of the vector integrand
120
121 IMPLICIT NONE
122 INTEGER, INTENT(IN) :: NDIM, ICP(*), NINT, IJAC
123 DOUBLE PRECISION, INTENT(IN) :: PAR(*)
124 DOUBLE PRECISION, INTENT(IN) :: U(NDIM), UOLD(NDIM), UDOT(NDIM), UPOLD(NDIM)
125 DOUBLE PRECISION, INTENT(OUT) :: FI(NINT)
126 DOUBLE PRECISION, INTENT(INOUT) :: DINT(NINT,*)
127
128 !XXX FI(1)=
129
130 END SUBROUTINE ICND
131 !----------------------------------------------------------------------
132 !----------------------------------------------------------------------
133
134 SUBROUTINE FOPT(NDIM,U,ICP,PAR,IJAC,FS,DFDU,DFDP)
135 ! ---------- ----
136 !
137 ! Defines the objective function for algebraic optimization problems
138 !
139 ! Supplied variables :
140 ! NDIM : Dimension of the state equation
141 ! U : The state vector
142 ! ICP : Indices of the control parameters
143 ! PAR : The vector of control parameters
144 !
145 ! Values to be returned :
146 ! FS : The value of the objective function
147 !
148 ! Normally unused Jacobian argument : IJAC, DFDP
149
150 IMPLICIT NONE
151 INTEGER, INTENT(IN) :: NDIM, ICP(*), IJAC
152 DOUBLE PRECISION, INTENT(IN) :: U(NDIM), PAR(*)
153 DOUBLE PRECISION, INTENT(OUT) :: FS
154 DOUBLE PRECISION, INTENT(INOUT) :: DFDU(NDIM),DFDP(*)
155
156 !XXX FS=
157
158 END SUBROUTINE FOPT
159 !----------------------------------------------------------------------
160 !----------------------------------------------------------------------
161
162 SUBROUTINE PVLS(NDIM,U,PAR)
163 ! ---------- ----
164
165 IMPLICIT NONE
166 INTEGER, INTENT(IN) :: NDIM
167 DOUBLE PRECISION, INTENT(IN) :: U(NDIM)
168 DOUBLE PRECISION, INTENT(INOUT) :: PAR(*)
169
170 !----------------------------------------------------------------------
171 ! NOTE :
172 ! Parameters set in this subroutine should be considered as ``solution
173 ! measures'' and be used for output purposes only.
174 !
175 ! They should never be used as `true'' continuation parameters.
176 !
177 ! They may, however, be added as ``over-specified parameters'' in the
178 ! parameter list associated with the AUTO-Constant NICP, in order to
179 ! print their values on the screen and in the ``p.xxx file.
180 !
181 ! They may also appear in the list associated with AUTO-Constant NUZR.
182 !
183 !----------------------------------------------------------------------
184 ! For algebraic problems the argument U is, as usual, the state vector.
185 ! For differential equations the argument U represents the approximate
186 ! solution on the entire interval [0,1]. In this case its values must
187 ! be accessed indirectly by calls to GETP, as illustrated below.
188 !----------------------------------------------------------------------
189 !
190 ! Set PAR(2) equal to the L2-norm of U(1)
191 !XX PAR(2)=GETP('NRM',1,U)
192 !
193 ! Set PAR(3) equal to the minimum of U(2)
194 !XX PAR(3)=GETP('MIN',2,U)
195 !
196 ! Set PAR(4) equal to the value of U(2) at the left boundary.
197 !XX PAR(4)=GETP('BV0',2,U)
198 !
199 ! Set PAR(5) equal to the pseudo-arclength step size used.
200 !XX PAR(5)=GETP('STP',1,U)
201 !
202 !----------------------------------------------------------------------
203 ! The first argument of GETP may be one of the following:
204 ! 'NRM' (L2-norm), 'MAX' (maximum),
205 ! 'INT' (integral), 'BV0 (left boundary value),
206 ! 'MIN' (minimum), 'BV1' (right boundary value).
207 !
208 ! Also available are
209 ! 'STP' (Pseudo-arclength step size used).
210 ! 'FLD' (`Fold function', which vanishes at folds).
211 ! 'BIF' (`Bifurcation function', which vanishes at singular points).
212 ! 'HBF' (`Hopf function'; which vanishes at Hopf points).
213 ! 'SPB' ( Function which vanishes at secondary periodic bifurcations).
214 !----------------------------------------------------------------------
215
216 END SUBROUTINE PVLS
217 !----------------------------------------------------------------------
218 !----------------------------------------------------------------------