2005-07-29 00:44:25 +08:00
|
|
|
/*BHEADER**********************************************************************
|
2008-07-18 09:34:48 +08:00
|
|
|
* Copyright (c) 2008, Lawrence Livermore National Security, LLC.
|
2006-07-28 07:26:57 +08:00
|
|
|
* 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.
|
2005-07-29 00:44:25 +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.
|
2005-07-29 00:44:25 +08:00
|
|
|
*
|
|
|
|
|
* $Revision$
|
2006-07-28 07:26:57 +08:00
|
|
|
***********************************************************************EHEADER*/
|
|
|
|
|
|
2005-07-29 00:44:25 +08:00
|
|
|
#include "headers.h"
|
|
|
|
|
#include "fortran.h"
|
|
|
|
|
|
|
|
|
|
/*--------------------------------------------------------------------------
|
|
|
|
|
* HYPRE_StructVectorSetRandomValues
|
|
|
|
|
*--------------------------------------------------------------------------*/
|
|
|
|
|
|
|
|
|
|
void
|
|
|
|
|
hypre_F90_IFACE(hypre_structvectorsetrandomvalu, HYPRE_STRUCTVECTORSETRANDOMVALU)
|
2011-01-07 07:20:57 +08:00
|
|
|
(hypre_F90_Obj *vector,
|
|
|
|
|
hypre_F90_Int *seed,
|
|
|
|
|
hypre_F90_Int *ierr)
|
2005-07-29 00:44:25 +08:00
|
|
|
{
|
2011-01-07 07:20:57 +08:00
|
|
|
*ierr = (hypre_F90_Int)
|
|
|
|
|
( hypre_StructVectorSetRandomValues(
|
|
|
|
|
(hypre_StructVector *) vector,
|
|
|
|
|
hypre_F90_PassInt (seed) ));
|
2005-07-29 00:44:25 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
2005-08-17 00:32:05 +08:00
|
|
|
/*--------------------------------------------------------------------------
|
|
|
|
|
* HYPRE_StructSetRandomValues
|
|
|
|
|
*--------------------------------------------------------------------------*/
|
|
|
|
|
|
|
|
|
|
void
|
|
|
|
|
hypre_F90_IFACE(hypre_structsetrandomvalues, HYPRE_STRUCTSETRANDOMVALUES)
|
2011-01-07 07:20:57 +08:00
|
|
|
(hypre_F90_Obj *vector,
|
|
|
|
|
hypre_F90_Int *seed,
|
|
|
|
|
hypre_F90_Int *ierr)
|
2005-08-17 00:32:05 +08:00
|
|
|
{
|
2011-01-07 07:20:57 +08:00
|
|
|
*ierr = (hypre_F90_Int)
|
|
|
|
|
( hypre_StructSetRandomValues(
|
|
|
|
|
(hypre_StructVector *) vector,
|
|
|
|
|
hypre_F90_PassInt (seed) ));
|
2005-07-29 00:44:25 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/*--------------------------------------------------------------------------
|
|
|
|
|
* HYPRE_StructSetupInterpreter
|
|
|
|
|
*--------------------------------------------------------------------------*/
|
|
|
|
|
|
|
|
|
|
void
|
|
|
|
|
hypre_F90_IFACE(hypre_structsetupinterpreter, HYPRE_STRUCTSETUPINTERPRETER)
|
2011-01-07 07:20:57 +08:00
|
|
|
(hypre_F90_Obj *i,
|
|
|
|
|
hypre_F90_Int *ierr)
|
2005-07-29 00:44:25 +08:00
|
|
|
{
|
2011-01-07 07:20:57 +08:00
|
|
|
*ierr = (hypre_F90_Int)
|
|
|
|
|
( HYPRE_StructSetupInterpreter(
|
|
|
|
|
(mv_InterfaceInterpreter *) i ));
|
2005-07-29 00:44:25 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/*--------------------------------------------------------------------------
|
|
|
|
|
* HYPRE_StructSetupMatvec
|
|
|
|
|
*--------------------------------------------------------------------------*/
|
|
|
|
|
|
|
|
|
|
void
|
|
|
|
|
hypre_F90_IFACE(hypre_structsetupmatvec, HYPRE_STRUCTSETUPMATVEC)
|
2011-01-07 07:20:57 +08:00
|
|
|
(hypre_F90_Obj *mv,
|
|
|
|
|
hypre_F90_Int *ierr)
|
2005-07-29 00:44:25 +08:00
|
|
|
{
|
2011-01-07 07:20:57 +08:00
|
|
|
*ierr = (hypre_F90_Int)
|
|
|
|
|
( HYPRE_StructSetupMatvec(
|
|
|
|
|
hypre_F90_PassObjRef (HYPRE_MatvecFunctions, mv)));
|
2005-07-29 00:44:25 +08:00
|
|
|
}
|