1998-02-20 07:27:26 +08:00
|
|
|
/*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*/
|
|
|
|
|
/******************************************************************************
|
|
|
|
|
*
|
|
|
|
|
* HYPRE_MappedMatrix interface
|
|
|
|
|
*
|
|
|
|
|
*****************************************************************************/
|
|
|
|
|
|
1998-03-09 14:10:04 +08:00
|
|
|
#include "headers.h"
|
1998-02-20 07:27:26 +08:00
|
|
|
|
|
|
|
|
/*--------------------------------------------------------------------------
|
1999-09-18 03:05:03 +08:00
|
|
|
* HYPRE_MappedMatrixCreate
|
1998-02-20 07:27:26 +08:00
|
|
|
*--------------------------------------------------------------------------*/
|
|
|
|
|
|
|
|
|
|
HYPRE_MappedMatrix
|
1999-09-18 03:05:03 +08:00
|
|
|
HYPRE_MappedMatrixCreate( )
|
1998-02-20 07:27:26 +08:00
|
|
|
{
|
|
|
|
|
return ( (HYPRE_MappedMatrix)
|
1999-09-18 03:05:03 +08:00
|
|
|
hypre_MappedMatrixCreate( ));
|
1998-02-20 07:27:26 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/*--------------------------------------------------------------------------
|
1999-09-18 03:05:03 +08:00
|
|
|
* HYPRE_MappedMatrixDestroy
|
1998-02-20 07:27:26 +08:00
|
|
|
*--------------------------------------------------------------------------*/
|
|
|
|
|
|
|
|
|
|
int
|
1999-09-18 03:05:03 +08:00
|
|
|
HYPRE_MappedMatrixDestroy( HYPRE_MappedMatrix matrix )
|
1998-02-20 07:27:26 +08:00
|
|
|
{
|
1999-09-18 03:05:03 +08:00
|
|
|
return( hypre_MappedMatrixDestroy( (hypre_MappedMatrix *) matrix ) );
|
1998-02-20 07:27:26 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/*--------------------------------------------------------------------------
|
1999-09-18 03:05:03 +08:00
|
|
|
* HYPRE_MappedMatrixLimitedDestroy
|
1998-02-20 07:27:26 +08:00
|
|
|
*--------------------------------------------------------------------------*/
|
|
|
|
|
|
|
|
|
|
int
|
1999-09-18 03:05:03 +08:00
|
|
|
HYPRE_MappedMatrixLimitedDestroy( HYPRE_MappedMatrix matrix )
|
1998-02-20 07:27:26 +08:00
|
|
|
{
|
1999-09-18 03:05:03 +08:00
|
|
|
return( hypre_MappedMatrixLimitedDestroy( (hypre_MappedMatrix *) matrix ) );
|
1998-02-20 07:27:26 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/*--------------------------------------------------------------------------
|
1999-09-18 03:05:03 +08:00
|
|
|
* HYPRE_MappedMatrixInitialize
|
1998-02-20 07:27:26 +08:00
|
|
|
*--------------------------------------------------------------------------*/
|
|
|
|
|
|
|
|
|
|
int
|
1999-09-18 03:05:03 +08:00
|
|
|
HYPRE_MappedMatrixInitialize( HYPRE_MappedMatrix matrix )
|
1998-02-20 07:27:26 +08:00
|
|
|
{
|
1999-09-18 03:05:03 +08:00
|
|
|
return ( hypre_MappedMatrixInitialize( (hypre_MappedMatrix *) matrix ) );
|
1998-02-20 07:27:26 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/*--------------------------------------------------------------------------
|
1999-09-18 03:05:03 +08:00
|
|
|
* HYPRE_MappedMatrixAssemble
|
1998-02-20 07:27:26 +08:00
|
|
|
*--------------------------------------------------------------------------*/
|
|
|
|
|
|
|
|
|
|
int
|
1999-09-18 03:05:03 +08:00
|
|
|
HYPRE_MappedMatrixAssemble( HYPRE_MappedMatrix matrix )
|
1998-02-20 07:27:26 +08:00
|
|
|
{
|
1999-09-18 03:05:03 +08:00
|
|
|
return( hypre_MappedMatrixAssemble( (hypre_MappedMatrix *) matrix ) );
|
1998-02-20 07:27:26 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/*--------------------------------------------------------------------------
|
1999-09-18 03:05:03 +08:00
|
|
|
* HYPRE_MappedMatrixPrint
|
1998-02-20 07:27:26 +08:00
|
|
|
*--------------------------------------------------------------------------*/
|
|
|
|
|
|
|
|
|
|
void
|
1999-09-18 03:05:03 +08:00
|
|
|
HYPRE_MappedMatrixPrint( HYPRE_MappedMatrix matrix )
|
1998-02-20 07:27:26 +08:00
|
|
|
{
|
1999-09-18 03:05:03 +08:00
|
|
|
hypre_MappedMatrixPrint( (hypre_MappedMatrix *) matrix );
|
1998-02-20 07:27:26 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/****************************************************************************
|
|
|
|
|
END OF ROUTINES THAT ARE ESSENTIALLY JUST CALLS THROUGH TO OTHER ROUTINES
|
|
|
|
|
AND THAT ARE INDEPENDENT OF THE PARTICULAR MATRIX TYPE (except for names)
|
|
|
|
|
***************************************************************************/
|
|
|
|
|
|
|
|
|
|
/*--------------------------------------------------------------------------
|
1999-09-18 03:05:03 +08:00
|
|
|
* HYPRE_MappedMatrixGetColIndex
|
1998-02-20 07:27:26 +08:00
|
|
|
*--------------------------------------------------------------------------*/
|
|
|
|
|
|
|
|
|
|
int
|
1999-09-18 03:05:03 +08:00
|
|
|
HYPRE_MappedMatrixGetColIndex( HYPRE_MappedMatrix matrix, int j )
|
1998-02-20 07:27:26 +08:00
|
|
|
{
|
1999-09-18 03:05:03 +08:00
|
|
|
return( hypre_MappedMatrixGetColIndex( (hypre_MappedMatrix *) matrix, j ));
|
1998-02-20 07:27:26 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/*--------------------------------------------------------------------------
|
1999-09-18 03:05:03 +08:00
|
|
|
* HYPRE_MappedMatrixGetMatrix
|
1998-02-20 07:27:26 +08:00
|
|
|
*--------------------------------------------------------------------------*/
|
|
|
|
|
|
|
|
|
|
void *
|
1999-09-18 03:05:03 +08:00
|
|
|
HYPRE_MappedMatrixGetMatrix( HYPRE_MappedMatrix matrix )
|
1998-02-20 07:27:26 +08:00
|
|
|
{
|
1999-09-18 03:05:03 +08:00
|
|
|
return( hypre_MappedMatrixGetMatrix( (hypre_MappedMatrix *) matrix ));
|
1998-02-20 07:27:26 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/*--------------------------------------------------------------------------
|
1999-09-18 03:05:03 +08:00
|
|
|
* HYPRE_MappedMatrixSetMatrix
|
1998-02-20 07:27:26 +08:00
|
|
|
*--------------------------------------------------------------------------*/
|
|
|
|
|
|
|
|
|
|
int
|
1999-09-18 03:05:03 +08:00
|
|
|
HYPRE_MappedMatrixSetMatrix( HYPRE_MappedMatrix matrix, void *matrix_data )
|
1998-02-20 07:27:26 +08:00
|
|
|
{
|
1999-09-18 03:05:03 +08:00
|
|
|
return( hypre_MappedMatrixSetMatrix( (hypre_MappedMatrix *) matrix, matrix_data ) );
|
1998-02-20 07:27:26 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/*--------------------------------------------------------------------------
|
1999-09-18 03:05:03 +08:00
|
|
|
* HYPRE_MappedMatrixSetColMap
|
1998-02-20 07:27:26 +08:00
|
|
|
*--------------------------------------------------------------------------*/
|
|
|
|
|
|
|
|
|
|
int
|
1999-09-18 03:05:03 +08:00
|
|
|
HYPRE_MappedMatrixSetColMap( HYPRE_MappedMatrix matrix, int (*ColMap)(int, void *) )
|
1998-02-20 07:27:26 +08:00
|
|
|
{
|
1999-09-18 03:05:03 +08:00
|
|
|
return( hypre_MappedMatrixSetColMap( (hypre_MappedMatrix *) matrix, ColMap ) );
|
1998-02-20 07:27:26 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/*--------------------------------------------------------------------------
|
1999-09-18 03:05:03 +08:00
|
|
|
* HYPRE_MappedMatrixSetMapData
|
1998-02-20 07:27:26 +08:00
|
|
|
*--------------------------------------------------------------------------*/
|
|
|
|
|
|
|
|
|
|
int
|
1999-09-18 03:05:03 +08:00
|
|
|
HYPRE_MappedMatrixSetMapData( HYPRE_MappedMatrix matrix, void *MapData )
|
1998-02-20 07:27:26 +08:00
|
|
|
{
|
1999-09-18 03:05:03 +08:00
|
|
|
return( hypre_MappedMatrixSetMapData( (hypre_MappedMatrix *) matrix, MapData ) );
|
1998-02-20 07:27:26 +08:00
|
|
|
}
|