forked from libMesh/libmesh
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Prepare to factor out petsc_auto_fieldsplit code
- Loading branch information
Showing
8 changed files
with
242 additions
and
18 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
// The libMesh Finite Element Library. | ||
// Copyright (C) 2002-2014 Benjamin S. Kirk, John W. Peterson, Roy H. Stogner | ||
|
||
// This library 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; either | ||
// version 2.1 of the License, or (at your option) any later version. | ||
|
||
// This library is distributed in the hope that it will be useful, | ||
// but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | ||
// Lesser General Public License for more details. | ||
|
||
// You should have received a copy of the GNU Lesser General Public | ||
// License along with this library; if not, write to the Free Software | ||
// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | ||
|
||
|
||
|
||
#ifndef LIBMESH_PETSC_AUTO_FIELDSPLIT_H | ||
#define LIBMESH_PETSC_AUTO_FIELDSPLIT_H | ||
|
||
#include "libmesh/libmesh_config.h" | ||
|
||
#ifdef LIBMESH_HAVE_PETSC | ||
|
||
#include "libmesh/petsc_macro.h" | ||
|
||
/** | ||
* Petsc include files. | ||
*/ | ||
|
||
// PCFieldSplitSetIs seems to have appeared late in the PETSc 3.1 | ||
// releases; we'll support it in 3.2 onward so we don't have to worry | ||
// about compilation errors | ||
|
||
#if !PETSC_VERSION_LESS_THAN(3,2,0) | ||
EXTERN_C_FOR_PETSC_BEGIN | ||
# include <petscksp.h> | ||
EXTERN_C_FOR_PETSC_END | ||
|
||
// Local includes | ||
|
||
// C++ includes | ||
|
||
namespace libMesh | ||
{ | ||
// Forward declarations | ||
class System; | ||
|
||
void petsc_auto_fieldsplit (PC my_pc, const System &sys); | ||
|
||
} // namespace libMesh | ||
|
||
|
||
#else // #PETSC_VERSION < 2.2.0 | ||
#endif // #PETSC_VERSION > 2.2.0 | ||
#endif // #ifdef LIBMESH_HAVE_PETSC | ||
#endif // LIBMESH_PETSC_AUTO_FIELDSPLIT_H |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.