hypre/struct_mv/F90_HYPRE_struct_stencil.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

61 lines
2.4 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*/
/******************************************************************************
*
* HYPRE_StructStencil interface
*
*****************************************************************************/
#include "headers.h"
#include "fortran.h"
/*--------------------------------------------------------------------------
* HYPRE_StructStencilCreate
*--------------------------------------------------------------------------*/
void
hypre_F90_IFACE(hypre_structstencilcreate, HYPRE_STRUCTSTENCILCREATE)( int *dim,
int *size,
long int *stencil,
int *ierr )
{
*ierr = (int)
( HYPRE_StructStencilCreate( (int) *dim,
(int) *size,
(HYPRE_StructStencil *) stencil ) );
}
/*--------------------------------------------------------------------------
* HYPRE_StructStencilSetElement
*--------------------------------------------------------------------------*/
void
hypre_F90_IFACE(hypre_structstencilsetelement, HYPRE_STRUCTSTENCILSETELEMENT)( long int *stencil,
int *element_index,
int *offset,
int *ierr )
{
*ierr = (int)
( HYPRE_StructStencilSetElement( (HYPRE_StructStencil) *stencil,
(int) *element_index,
(int *) offset ) );
}
/*--------------------------------------------------------------------------
* HYPRE_StructStencilDestroy
*--------------------------------------------------------------------------*/
void
hypre_F90_IFACE(hypre_structstencildestroy, HYPRE_STRUCTSTENCILDESTROY)( long int *stencil,
int *ierr )
{
*ierr = (int)
( HYPRE_StructStencilDestroy( (HYPRE_StructStencil) *stencil ) );
}