Comments (3)
Right - the former only checks if it exists, the latter makes sure the compiler & current compile options can use it...
from libmesh.
Hey, looks like trilinos v11 can pull in PETSc as well:
configure:28876: checking /software/x86_64/trilinos/11.0.3-openmpi-1.4-gcc-4.6/include/ml_include.h usability configure:28876: mpicxx -c conftest.cpp >&5 In file included from /software/x86_64/trilinos/11.0.3-openmpi-1.4-gcc-4.6/include/ml_common.h:56:0, from /software/x86_64/trilinos/11.0.3-openmpi-1.4-gcc-4.6/include/ml_include.h:16, from conftest.cpp:132: /software/x86_64/trilinos/11.0.3-openmpi-1.4-gcc-4.6/include/ml_config.h:120:0: warning: "HAVE_MPI" redefined [enabled by default] conftest.cpp:93:0: note: this is the location of the previous definition In file included from /software/x86_64/trilinos/11.0.3-openmpi-1.4-gcc-4.6/include/ml_struct.h:308:0, from /software/x86_64/trilinos/11.0.3-openmpi-1.4-gcc-4.6/include/ml_include.h:18, from conftest.cpp:132: /software/x86_64/trilinos/11.0.3-openmpi-1.4-gcc-4.6/include/ml_petsc.h:26:22: fatal error: petscksp.h: No such file or directory compilation terminated.
So it looks like if PETSC is enabled and there is a ml_petsc.h perhaps we need to pass the PETSC includes into trilinos??
from libmesh.
On Wed, Dec 19, 2012 at 12:30 PM, Benjamin S. Kirk
[email protected] wrote:
Hey, looks like trilinos v11 can pull in PETSc as well:
OK, so now all we need is for PETSc to be able to include Trilinos as
a package, and then a black hole will open up a swallow the entire
universe...
configure:28876: checking /software/x86_64/trilinos/11.0.3-openmpi-1.4-gcc-4.6/include/ml_include.h usability
configure:28876: mpicxx -c conftest.cpp >&5
In file included from /software/x86_64/trilinos/11.0.3-openmpi-1.4-gcc-4.6/include/ml_common.h:56:0,
from /software/x86_64/trilinos/11.0.3-openmpi-1.4-gcc-4.6/include/ml_include.h:16,
from conftest.cpp:132:
/software/x86_64/trilinos/11.0.3-openmpi-1.4-gcc-4.6/include/ml_config.h:120:0: warning: "HAVE_MPI" redefined [enabled by default]
conftest.cpp:93:0: note: this is the location of the previous definition
In file included from /software/x86_64/trilinos/11.0.3-openmpi-1.4-gcc-4.6/include/ml_struct.h:308:0,
from /software/x86_64/trilinos/11.0.3-openmpi-1.4-gcc-4.6/include/ml_include.h:18,
from conftest.cpp:132:
/software/x86_64/trilinos/11.0.3-openmpi-1.4-gcc-4.6/include/ml_petsc.h:26:22: fatal error: petscksp.h: No such file or directory
compilation terminated.So it looks like if PETSC is enabled and there is a ml_petsc.h perhaps we need to pass the PETSC includes into trilinos??
This is the problem that I've been seeing with AC_CHECK_HEADER vs.
AC_CHECK_FILE... things get crazy when you actually try to compile
stuff.
Since 'test -r' is apparently an officially-sanctioned thing [0], it
may be simpler to just use that to see if ml_include.h exists.
Of course, you're welcome to make these configure tests as complicated
as you'd like!
John
[0] http://www.gnu.org/software/autoconf/manual/autoconf.html
"To enable configure scripts to support cross-compilation, they
shouldn't do anything that tests features of the build system instead
of the host system. But occasionally you may find it necessary to
check whether some arbitrary file exists. To do so, use ‘test -f’,
‘test -r’, or ‘test -x’."
from libmesh.
Related Issues (20)
- FE pre-requests for error estimation HOT 3
- Create is_hierarchic shim in FEInterface
- Support repair of mixed-order meshes in `UnstructuredMesh::all_second_order()` HOT 1
- When is the next release ? HOT 3
- Hardcoded /usr/include/tirpc path HOT 3
- Enhance MeshFunction to handle vector variables
- Assessment of the difficulty in porting CPU architecture for libmesh HOT 1
- Uniform serial data access to vector and tensor types HOT 2
- Enabling threaded print of element information HOT 1
- Abaqus mesh reading new error
- Incorrect VTK configuration flag suggested by configure HOT 8
- Installation with mac M1 HOT 8
- Support mixed-order meshes in `find_neighbors()`, `stitch_meshes()` HOT 1
- Spurious -I/usr/include/tirpc is added when autodetecting libtirpc in linker path
- Refactor HDG NS example to use FEMContext
- VTK output then read loses block id information HOT 5
- MatSetValues_MPIAIJ() triggers malloc error at line 565 during libMesh termination HOT 6
- Installation error due to petsc compatibility HOT 12
- constrain_element_matrix changes the col_dofs vector size HOT 3
- Investigating the possibility of only having one solution vector in systems HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from libmesh.