Page MenuHomec4science

petsc.cmake
No OneTemporary

File Metadata

Created
Tue, Nov 5, 05:13

petsc.cmake

#===============================================================================
# @file petsc.cmake
#
# @author Alejandro M. Aragón <alejandro.aragon@epfl.ch>
# @author Aurelia Isabel Cuba Ramos <aurelia.cubaramos@epfl.ch>
# @author Nicolas Richart <nicolas.richart@epfl.ch>
#
# @date creation: Mon Nov 21 2011
# @date last modification: Tue Jan 19 2016
#
# @brief package description for PETSc support
#
# @section LICENSE
#
# Copyright (©) 2010-2012, 2014, 2015 EPFL (Ecole Polytechnique Fédérale de
# Lausanne) Laboratory (LSMS - Laboratoire de Simulation en Mécanique des
# Solides)
#
# Akantu 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 3 of the License, or (at your option) any
# later version.
#
# Akantu 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 Akantu. If not, see <http://www.gnu.org/licenses/>.
#
#===============================================================================
package_declare(PETSc EXTERNAL
DESCRIPTION "Add PETSc support in akantu"
EXTRA_PACKAGE_OPTIONS ARGS COMPONENTS C
DEPENDS parallel)
package_declare_sources(petsc
model/dof_manager_petsc.hh
model/dof_manager_petsc.cc
solver/sparse_matrix_petsc.hh
solver/sparse_matrix_petsc.cc
solver/solver_petsc.hh
solver/solver_petsc.cc
solver/petsc_wrapper.hh
)
package_declare_extra_files_to_package(PETSc
PROJECT
cmake/Modules/FindPETSc.cmake
cmake/Modules/FindPackageMultipass.cmake
cmake/Modules/ResolveCompilerPaths.cmake
cmake/Modules/CorrectWindowsPaths.cmake
)
package_declare_documentation(PETSc
"This package enables PETSc as a solver in Akantu"
""
"Under Ubuntu (14.04 LTS) the installation can be performed using the commands:"
"\\begin{command}"
" > sudo apt-get install libpetsc3.4.2-dev"
"\\end{command}"
""
)
package_set_package_system_dependency(PETSc deb libpetsc3.4.2)
package_set_package_system_dependency(PETSc deb-src libpetsc3.4.2-dev)

Event Timeline