hypre/parcsr_mv/F90_parcsr_matrix.c

56 lines
1.8 KiB
C
Raw Normal View History

1999-07-31 01:38:21 +08:00
/*BHEADER**********************************************************************
2008-07-18 09:34:48 +08:00
* Copyright (c) 2008, Lawrence Livermore National Security, LLC.
* Produced at the Lawrence Livermore National Laboratory.
2008-07-18 09:34:48 +08:00
* This file is part of HYPRE. See file COPYRIGHT for details.
1999-07-31 01:38:21 +08:00
*
2008-07-18 09:34:48 +08:00
* HYPRE is free software; you can redistribute it and/or modify it under the
* terms of the GNU Lesser General Public License (as published by the Free
* Software Foundation) version 2.1 dated February 1999.
1999-07-31 01:38:21 +08:00
*
* $Revision$
***********************************************************************EHEADER*/
1999-07-31 01:38:21 +08:00
/******************************************************************************
*
* ParCSRMatrix Fortran interface to macros
1999-07-31 01:38:21 +08:00
*
*****************************************************************************/
#include "headers.h"
#include "fortran.h"
/*--------------------------------------------------------------------------
* hypre_ParCSRMatrixGlobalNumRows
*--------------------------------------------------------------------------*/
void
hypre_F90_IFACE(hypre_parcsrmatrixglobalnumrows, HYPRE_PARCSRMATRIXGLOBALNUMROWS)
( hypre_F90_Obj *matrix,
hypre_F90_Int *num_rows,
hypre_F90_Int *ierr )
1999-07-31 01:38:21 +08:00
{
*num_rows = (hypre_F90_Int)
( hypre_ParCSRMatrixGlobalNumRows(
(hypre_ParCSRMatrix *) *matrix ) );
1999-07-31 01:38:21 +08:00
*ierr = 0;
}
/*--------------------------------------------------------------------------
* hypre_ParCSRMatrixRowStarts
*--------------------------------------------------------------------------*/
void
hypre_F90_IFACE(hypre_parcsrmatrixrowstarts, HYPRE_PARCSRMATRIXROWSTARTS)
( hypre_F90_Obj *matrix,
hypre_F90_Obj *row_starts,
hypre_F90_Int *ierr )
1999-07-31 01:38:21 +08:00
{
*row_starts = (hypre_F90_Obj)
( hypre_ParCSRMatrixRowStarts(
(hypre_ParCSRMatrix *) *matrix ) );
1999-07-31 01:38:21 +08:00
*ierr = 0;
}