PRWPGE(3)

SYNOPSIS
SUBROUTINE PRWPGE (KEY, IPAGE, LPG, SX, IX)

NAME
prwpge - Subsidiary to SPLP

LIBRARY
SLATEC

TYPE
SINGLE PRECISION (PRWPGE-S, DPRWPG-D)

AUTHOR
Hanson, R. J., (SNLA) Wisniewski, J. A., (SNLA)

DESCRIPTION
PRWPGE LIMITS THE TYPE OF STORAGE TO A SEQUENTIAL SCHEME. VIRTUAL MEMORY PAGE READ/WRITE SUBROUTINE. DEPENDING ON THE VALUE OF KEY, SUBROUTINE PRWPGE() PERFORMS A PAGE READ OR WRITE OF PAGE IPAGE. THE PAGE HAS LENGTH LPG. KEY IS A FLAG INDICATING WHETHER A PAGE READ OR WRITE IS TO BE PERFORMED. IF KEY = 1 DATA IS READ. IF KEY = 2 DATA IS WRITTEN. IPAGE IS THE PAGE NUMBER OF THE MATRIX TO BE ACCESSED. LPG IS THE LENGTH OF THE PAGE OF THE MATRIX TO BE ACCESSED. SX(*),IX(*) IS THE MATRIX TO BE ACCESSED. THIS SUBROUTINE IS A MODIFICATION OF THE SUBROUTINE LRWPGE, SANDIA LABS. REPT. SAND78-0785. MODIFICATIONS BY K.L. HIEBERT AND R.J. HANSON

REVISED 811130-1000 REVISED YYMMDD-HHMM

SEE ALSO
SPLP

ROUTINES CALLED
PRWVIR, XERMSG

REVISION HISTORY (YYMMDD)
811215 DATE WRITTEN
891214 Prologue converted to Version 4.0 format. (BAB)
900315 CALLs to XERROR changed to CALLs to XERMSG. (THJ)
900328 Added TYPE section. (WRB)
900510 Fixed error messages and replaced GOTOs with IF-THEN-ELSE. (RWC)
910403 Updated AUTHOR and DESCRIPTION sections. (WRB)