hypre/parcsr_mv/F90_parcsr_matrix.c
falgout c4ae5f02f8 Changed fortran interface port to (hopefully) support CRAY fortran
compilers and any other fortran compilers that mangle subroutine
names using all caps.
2000-10-09 22:32:34 +00:00

48 lines
1.7 KiB
C

/*BHEADER**********************************************************************
* (c) 1997 The Regents of the University of California
*
* See the file COPYRIGHT_and_DISCLAIMER for a complete copyright
* notice, contact person, and disclaimer.
*
* $Revision$
*********************************************************************EHEADER*/
/******************************************************************************
*
* ParCSRMatrix Fortran interface to macros
*
*****************************************************************************/
#include "headers.h"
#include "fortran.h"
/*--------------------------------------------------------------------------
* hypre_ParCSRMatrixGlobalNumRows
*--------------------------------------------------------------------------*/
void
hypre_F90_IFACE(hypre_parcsrmatrixglobalnumrows, HYPRE_PARCSRMATRIXGLOBALNUMROWS)( long int *matrix,
int *num_rows,
int *ierr )
{
*num_rows = (int) ( hypre_ParCSRMatrixGlobalNumRows
( (hypre_ParCSRMatrix *) *matrix ) );
*ierr = 0;
}
/*--------------------------------------------------------------------------
* hypre_ParCSRMatrixRowStarts
*--------------------------------------------------------------------------*/
void
hypre_F90_IFACE(hypre_parcsrmatrixrowstarts, HYPRE_PARCSRMATRIXROWSTARTS)( long int *matrix,
long int *row_starts,
int *ierr )
{
*row_starts = (long int) ( hypre_ParCSRMatrixRowStarts
( (hypre_ParCSRMatrix *) *matrix ) );
*ierr = 0;
}