Subversion Repositories slepc-dev

Rev

Only display areas with differences | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 1672 Rev 2116
/*
/*
   - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
   - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
   SLEPc - Scalable Library for Eigenvalue Problem Computations
   SLEPc - Scalable Library for Eigenvalue Problem Computations
   Copyright (c) 2002-2009, Universidad Politecnica de Valencia, Spain
   Copyright (c) 2002-2010, Universidad Politecnica de Valencia, Spain
 
 
   This file is part of SLEPc.
   This file is part of SLEPc.
     
     
   SLEPc is free software: you can redistribute it and/or modify it under  the
   SLEPc is free software: you can redistribute it and/or modify it under  the
   terms of version 3 of the GNU Lesser General Public License as published by
   terms of version 3 of the GNU Lesser General Public License as published by
   the Free Software Foundation.
   the Free Software Foundation.
 
 
   SLEPc  is  distributed in the hope that it will be useful, but WITHOUT  ANY
   SLEPc  is  distributed in the hope that it will be useful, but WITHOUT  ANY
   WARRANTY;  without even the implied warranty of MERCHANTABILITY or  FITNESS
   WARRANTY;  without even the implied warranty of MERCHANTABILITY or  FITNESS
   FOR  A  PARTICULAR PURPOSE. See the GNU Lesser General Public  License  for
   FOR  A  PARTICULAR PURPOSE. See the GNU Lesser General Public  License  for
   more details.
   more details.
 
 
   You  should have received a copy of the GNU Lesser General  Public  License
   You  should have received a copy of the GNU Lesser General  Public  License
   along with SLEPc. If not, see <http://www.gnu.org/licenses/>.
   along with SLEPc. If not, see <http://www.gnu.org/licenses/>.
   - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
   - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
*/
*/
 
 
#include "private/fortranimpl.h"
#include "private/fortranimpl.h"
 
 
#ifdef PETSC_HAVE_FORTRAN_CAPS
#ifdef PETSC_HAVE_FORTRAN_CAPS
#define slepcinitializefortran_     SLEPCINITIALIZEFORTRAN
#define slepcinitializefortran_     SLEPCINITIALIZEFORTRAN
#elif !defined(PETSC_HAVE_FORTRAN_UNDERSCORE)
#elif !defined(PETSC_HAVE_FORTRAN_UNDERSCORE)
#define slepcinitializefortran_     slepcinitializefortran
#define slepcinitializefortran_     slepcinitializefortran
#endif
#endif
 
 
/*@C
/*@C
   SlepcInitializeFortran - Routine that should be called from C after
   SlepcInitializeFortran - Routine that should be called from C after
   the call to SlepcInitialize() if one is using a C main program
   the call to SlepcInitialize() if one is using a C main program
   that calls Fortran routines that in turn call SLEPc routines.
   that calls Fortran routines that in turn call SLEPc routines.
 
 
   Collective on PETSC_COMM_WORLD
   Collective on PETSC_COMM_WORLD
 
 
   Level: beginner
   Level: beginner
 
 
   Notes:
   Notes:
   SlepcInitializeFortran() initializes some of the default SLEPc variables
   SlepcInitializeFortran() initializes some of the default SLEPc variables
   for use in Fortran if a user's main program is written in C.  
   for use in Fortran if a user's main program is written in C.  
   SlepcInitializeFortran() is NOT needed if a user's main
   SlepcInitializeFortran() is NOT needed if a user's main
   program is written in Fortran; in this case, just calling
   program is written in Fortran; in this case, just calling
   SlepcInitialize() in the main (Fortran) program is sufficient.
   SlepcInitialize() in the main (Fortran) program is sufficient.
 
 
.seealso:  SlepcInitialize()
.seealso:  SlepcInitialize()
 
 
@*/
@*/
 
 
PetscErrorCode SlepcInitializeFortran(void)
PetscErrorCode SlepcInitializeFortran(void)
{
{
  PetscInitializeFortran();
  PetscInitializeFortran();
  return 0;
  return 0;
}
}
 
 
EXTERN_C_BEGIN
EXTERN_C_BEGIN
 
 
void PETSC_STDCALL slepcinitializefortran_(PetscErrorCode *info)
void PETSC_STDCALL slepcinitializefortran_(PetscErrorCode *info)
{
{
  *info = SlepcInitializeFortran();
  *info = SlepcInitializeFortran();
}
}
 
 
EXTERN_C_END
EXTERN_C_END