LoadSystem.F


#include "iadefines.h"
c**********************************************************************
#include "author.inc"
c*    $Id: LoadSystem.F,v 1.3 1996/07/08 00:51:24 turner Exp $
c*
c*    Subroutine to load an entire linear system.
c*
c*    <PARAMETER LIST>
c*
c*     Input:
c*      lu - logical unit from which to read
c*
c*     Output:
c*      a - coefficient matrix
c*      ia - integer vector containing info about how "a" is stored
c*        NOTE: see description of ia below
c*      ja - map array
c*      x - vector of unknowns
c*      b - vector containing right-hand side
c*      status - return status
c*        -1  ==>  invalid argument(s)
c*         0  ==>  success
c*
#include "iadesc.inc"
c*
c*    <SUBROUTINES REQUIRED>
c*
c*     JT_LoadCoeff
c*
#include "copyright.inc"
c**********************************************************************
      subroutine JT_LoadSystem (lu, a, ia, ja, x, b, status)
      implicit none
c
c ... Input:
      integer lu
c
c ... Output:
      integer status
      integer ia(_JT_no_of_storage_parameters_)
      integer ja(*)
      real a(*), x(*), b(*)
c
c ... Local:
      integer i
c
      call JT_LoadCoeff (lu, a, ia, ja, status)
      do i=1,ia(2)
       read(lu,*,end=9999,err=9999) x(i), b(i)
      enddo
c
 9999 continue
      return
      end