LUdecomp.F
#include "iadefines.h"
c**********************************************************************
#include "author.inc"
c* $Id: LUdecomp.F,v 1.8 1996/04/24 19:14:35 turner Exp $
c*
c* Compute the LU decomposition of a matrix.
c*
c* <PARAMETER LIST>
c*
c* Input:
c* ia - integer vector containing info about how "a" is stored
c* NOTE: see description of ia below
c* ja - column map for matrix
c*
c* In/Out:
c* a - matrix to be factored
c*
c* Output:
c* status - return status
c* -4 ==> breakdown
c* -3 ==> internal error
c* -1 ==> invalid argument(s)
c* 0 ==> success
c*
#include "iadesc.inc"
c*
c* <SUBROUTINES REQUIRED>
c*
c* JT_LUdecomp_Full for A stored in full conventional format
c*
#include "copyright.inc"
c**********************************************************************
subroutine JT_LUdecomp (a, ia, ja, status)
implicit none
c
c ... Input:
integer ia(_JT_no_of_storage_parameters_), ja(*)
c
c ... In/Out:
real a(*)
c
c ... Output:
integer status
c
if (ia(_JT_storage_) .eq. _JT_storage_full_) then
call JT_LUdecomp_Full (ia(_JT_idim_), ia(_JT_nrows_), a, status)
else
status = -1
return
endif
c
if (status .eq. -1) status = -3
c
return
end