Hello,
Our IT team developed a new procedure for installing libmesh on our iMac
machines, so that petsc, slepc, glpk, and eigen are called from the macports
that are controlled by them. The procedure - here below - works fine, I think
the girl called Vera wrote here to come up with it.
There's something weird though. In order to run the examples - or any other
code - after the installation, the assertion in the main file
libmesh_example_assert(libMesh::default_solver_package() == PETSC_SOLVERS,
"--enable-petsc");
has to be commented out, since it would otherwise fail. After doing that, petsc
works fine, despite the assertion.
When it comes to nonlinear solvers though (e.g. miscellaneous ex7), the
situation is more problematic since the assertion that fails lies in
nonlinear_solver.C:
#if defined(LIBMESH_HAVE_PETSC) || defined(LIBMESH_HAVE_NOX)
…
#else // LIBMESH_HAVE_PETSC || LIBMESH_HAVE_NOX
template <typename T>
AutoPtr<NonlinearSolver<T> >
NonlinearSolver<T>::build(sys_type&, const SolverPackage)
{
libMesh::err << "ERROR: libMesh was compiled without nonlinear solver support"
<< std::endl;
libmesh_not_implemented();
}
#endif
and the error ends the program. Even if I do #define LIBMESH_HAVE_PETSC inside
the main file, I assume it gets undefined somewhere, because I get the error
anyway.
Do you think there is a solution for this?
Thanks a lot,
Lorenzo
The installation procedure:
# cd ~/Desktop
# git clone git://github.com/libMesh/libmesh.git libmesh_root
# cd libmesh_root
# mkdir build
# mkdir installed
# cd build
# ../configure
--prefix=/home/<NAME>/Desktop/libmesh_root/installed
--with-glpk-include=/usr/local/macports108/include
--with-glpk-lib=/usr/local/macports108/lib
--with-eigen-include=/usr/local/macports108/include/eigen3
--with-hdf5=/usr/local/macports108
--enable-petsc
--enable-slepc
--enable-mpi
--enable-examples
CXX=openmpicxx CC=openmpicc FC=openmpif90 F77=openmpif90
CXXFLAGS=-I/opt/X11/include LDFLAGS=-L/opt/X11/lib
# make -j2
# make install
# make check
------------------------------------------------------------------------------
CenturyLink Cloud: The Leader in Enterprise Cloud Services.
Learn Why More Businesses Are Choosing CenturyLink Cloud For
Critical Workloads, Development Environments & Everything In Between.
Get a Quote or Start a Free Trial Today.
http://pubads.g.doubleclick.net/gampad/clk?id=119420431&iu=/4140/ostg.clktrk
_______________________________________________
Libmesh-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/libmesh-users