| 1376 |
slepc |
1 |
/*
|
|
|
2 |
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
| 1672 |
slepc |
3 |
SLEPc - Scalable Library for Eigenvalue Problem Computations
|
| 2575 |
eromero |
4 |
Copyright (c) 2002-2011, Universitat Politecnica de Valencia, Spain
|
| 986 |
slepc |
5 |
|
| 1672 |
slepc |
6 |
This file is part of SLEPc.
|
|
|
7 |
|
|
|
8 |
SLEPc is free software: you can redistribute it and/or modify it under the
|
|
|
9 |
terms of version 3 of the GNU Lesser General Public License as published by
|
|
|
10 |
the Free Software Foundation.
|
|
|
11 |
|
|
|
12 |
SLEPc is distributed in the hope that it will be useful, but WITHOUT ANY
|
|
|
13 |
WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
|
|
|
14 |
FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for
|
|
|
15 |
more details.
|
|
|
16 |
|
|
|
17 |
You should have received a copy of the GNU Lesser General Public License
|
|
|
18 |
along with SLEPc. If not, see <http://www.gnu.org/licenses/>.
|
| 1376 |
slepc |
19 |
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
|
|
20 |
*/
|
|
|
21 |
|
| 2283 |
jroman |
22 |
#include <private/fortranimpl.h>
|
| 986 |
slepc |
23 |
|
| 2320 |
jroman |
24 |
#if defined(PETSC_HAVE_FORTRAN_CAPS)
|
| 986 |
slepc |
25 |
#define slepcinitializefortran_ SLEPCINITIALIZEFORTRAN
|
|
|
26 |
#elif !defined(PETSC_HAVE_FORTRAN_UNDERSCORE)
|
|
|
27 |
#define slepcinitializefortran_ slepcinitializefortran
|
|
|
28 |
#endif
|
|
|
29 |
|
|
|
30 |
/*@C
|
|
|
31 |
SlepcInitializeFortran - Routine that should be called from C after
|
|
|
32 |
the call to SlepcInitialize() if one is using a C main program
|
|
|
33 |
that calls Fortran routines that in turn call SLEPc routines.
|
|
|
34 |
|
| 1021 |
slepc |
35 |
Collective on PETSC_COMM_WORLD
|
| 986 |
slepc |
36 |
|
|
|
37 |
Level: beginner
|
|
|
38 |
|
|
|
39 |
Notes:
|
|
|
40 |
SlepcInitializeFortran() initializes some of the default SLEPc variables
|
|
|
41 |
for use in Fortran if a user's main program is written in C.
|
|
|
42 |
SlepcInitializeFortran() is NOT needed if a user's main
|
|
|
43 |
program is written in Fortran; in this case, just calling
|
|
|
44 |
SlepcInitialize() in the main (Fortran) program is sufficient.
|
|
|
45 |
|
|
|
46 |
.seealso: SlepcInitialize()
|
|
|
47 |
|
|
|
48 |
@*/
|
|
|
49 |
|
|
|
50 |
PetscErrorCode SlepcInitializeFortran(void)
|
|
|
51 |
{
|
|
|
52 |
PetscInitializeFortran();
|
|
|
53 |
return 0;
|
|
|
54 |
}
|
|
|
55 |
|
|
|
56 |
EXTERN_C_BEGIN
|
|
|
57 |
|
| 1510 |
slepc |
58 |
void PETSC_STDCALL slepcinitializefortran_(PetscErrorCode *info)
|
| 986 |
slepc |
59 |
{
|
|
|
60 |
*info = SlepcInitializeFortran();
|
|
|
61 |
}
|
|
|
62 |
|
|
|
63 |
EXTERN_C_END
|
|
|
64 |
|