Sunteți pe pagina 1din 2

REGLS.

FOR

www.boundary-element-method.com

Boundary Element Method Open Source Software in FORTRAN


File / Module(s)
Title
Version(Date) and
History
Description

REGLS.FOR / REGLS
Re-runs a fast form of the GLS routine (using information obtained from GLS) for the same boundary element method but
with a varied boundary condition.
1. (June 2015).
This is a FORTRAN source file for solving a general linear system of equations
= + ,

(1a)

where A and B are known matrices and is a known -vector with


+ = for = 1

Interface

Web source of code.


Web source of this guide

(1b)

where the , and are constants with and are never both zero for each i. The evaluation of vectors and is the
solution of the process.
SUBROUTINE REGLS(MAXN,N, A_GLS, B_GLS, XORY, PERM, ALPHA, BETA,C_NEW, F_NEW, X, Y, WKSPC)
INTEGER MAXN The limit on the dimension of the matrices A and B
INTEGER N The dimension of the matrices and vectors
Input Parameters
REAL*8 A_GLS(MAXN,MAXN) The matrix A, following row operations and LU factorisation GLS.FOR in file GLS2.FOR
REAL*8 B_GLS(MAXN,MAXN) The matrix B, following row operations in GLS.FOR in file GLS2.FOR
REAL*8 C_NEW(MAXN) The vector c
REAL*8 ALPHA(MAXN) The i = 1 . These must be the same as those used in GLS.
REAL*8 BETA(MAXN) The i = 1 . These must be the same as those used in GLS.
REAL*8 F(MAXN) The fi = 1
Output Parameters
REAL*8 X(MAXN) The solution vector x
REAL*8 Y(MAXN) The solution vector y
www.boundary-element-method.com/fortran/REGLS.FOR
www.boundary-element-method.com/fortran/REGLS_FOR.pdf

REGLS.FOR
Web source of the
algorithm
Dependent routines
Test problems or
modules tested
Licence
Codes that this may be
used alongside this one
Similar codes that may be
of interest
Applications
Alternative Platforms
Author
References

www.boundary-element-method.com
http://www.boundary-element-method.com/tutorials/Numerical Solution of a General Linear System of Equations.pdf
LUFAC : www.numerical-methods.com/fortran/LUFAC.FOR
LUFBSUB : www.numerical-methods.com/fortran/LUFBSUB.FOR
GLS_T : www.boundary-element-method.com/fortran/GLSTESTS.FOR
This is open source; the software may be used and applied within other systems as long as its provenance is appropriately
acknowledged. See the GNU Licence for more information or contact webmaster@boundary-element-method.com .
REGLS reused the results of GLS so that solutions of problems with different boundary conditions can be found more
quickly : www.boundary-element-method.com/fortran/REGLS.FOR
A similar m-file code is available (Matlab/Freemat/Octave/Scilab) is available on
www.boundary-element-method.com/mfiles/regls.m
and a similar code in Excel-VBA is available on
www.boundary-element-method.com/Excel_VBA/GLS.xlsm
LIBEM2, LIBEM3,LIBEMA, LEBEM3, LABEM3, LSEM3
Fortran-Complex System CGLS
Matlab/Freemat/Octave/Scilab gls
VBA/Visual Basic GLS.xlsm
Stephen Kirkup
1. Numerical Solution of General Linear Systems of Equations
2. The Boundary Element Method in Acoustics
3. www.boundary-element-method.com
4. Fortran 77 tutorials

S-ar putea să vă placă și