|
PROGRAM LIBRARY JINRLIBMATPROG,CMATPROG - solution of three-diagonal algebraic system of vector equationsAuthor: E.V.Zemlyanaya |
|
Language: Fortran Subroutines MATPROG and CMATPROG solve an algebraic system of the following form: ai * zi-1 + bi * zi + ci * zi+1 = di i =1,...,N (1) where:
In the code MATPROG variables a,b,c,d,z are real; Systems of the form (1) typically arise in result of finite difference approximation of linear systems of ordinary differential equations (ODE). So the code can be useful for numerical solution of these systems. It can also be applied in Newtonian schemes for numerical solution of nonlinear ODEs, and in implicit schemes for numerical simulation of particle differential systems. For example, MATPROG was used in the implicit scheme for the modelling of thermoelastic effects in metals irradiated by impulse ion beams [1]; CMATPROG was used in Newtonian scheme for stability analyses of gap solitons [2]. Algorithm of codes MATPROG and CMATPROG is given in [1], sect.4. References:
Usage: CALL MATPROG (N,L,a,b,c,d,z,aa,bb)CALL CMATPROG (N,L,a,b,c,d,z,aa,bb), where:
In subroutine MATPROG the type of variables a,b,c,d,z,aa,bb - REAL*8; Subroutines MULTMM, MULTMV, INVERSE, MULTMMC, MULTMVC, INVERSE_C are used for multiplication of matrixes and vectors (both complex and real) and for the matrix inverse (in complex and real variables). Sources and the detailed description (in Russian) are submitted. |