Skip to content

Commit 26725c3

Browse files
authored
Merge pull request #3498 from roystgnr/metaphysicl_update
Update MetaPhysicL, enable all compiler warnings for it
2 parents ea88164 + 05652b7 commit 26725c3

4 files changed

Lines changed: 3 additions & 14 deletions

File tree

configure

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56938,7 +56938,6 @@ fi
5693856938

5693956939
my_top_srcdir="$(cd $srcdir && pwd)"
5694056940

56941-
5694256941
if test "x$build_metaphysicl" = "xyes"; then :
5694356942

5694456943
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: <<< Configuring library with built-in MetaPhysicL support >>>" >&5
@@ -57035,7 +57034,7 @@ ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
5703557034
as_fn_append ax_args " '--with-cxx-std=20$acsm_cxx_version'"
5703657035
as_fn_append ax_args " 'CPPFLAGS=-I$my_top_srcdir/contrib/timpi/src/algorithms/include/ -I$my_top_srcdir/contrib/timpi/src/parallel/include/ -I$my_top_srcdir/contrib/timpi/src/utilities/include/ -I$ac_abs_top_builddir/contrib/timpi/src/utilities/include/ $CPPFLAGS'"
5703757036
as_fn_append ax_args " 'LDFLAGS=-L$ac_abs_top_builddir/contrib/timpi/src/ $LDFLAGS'"
57038-
as_fn_append ax_args " 'TIMPI_DIR=$my_top_srcdir/contrib/timpi/'"
57037+
as_fn_append ax_args " '--with-future-timpi-dir=$prefix'"
5703957038
as_fn_append ax_args " '--with-timpi-method=$my_method'"
5704057039

5704157040
# New options that may need to be merged with existing options.

m4/libmesh_metaphysicl.m4

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -121,14 +121,10 @@ AC_DEFUN([CONFIGURE_METAPHYSICL],
121121
dnl here's a trick from GraphicsMagick:
122122
my_top_srcdir="$(cd $srcdir && pwd)"
123123
124-
dnl FIXME: setting TIMPI_DIR, even to something invalid, is
125-
dnl currently the best way to get MetaPhysicL to recognize
126-
dnl that we really want TIMPI.
127-
128124
AS_IF([test "x$build_metaphysicl" = "xyes"],
129125
[
130126
AC_MSG_RESULT(<<< Configuring library with built-in MetaPhysicL support >>>)
131-
AX_SUBDIRS_CONFIGURE([contrib/metaphysicl],[[--with-cxx-std=20$acsm_cxx_version],[CPPFLAGS=-I$my_top_srcdir/contrib/timpi/src/algorithms/include/ -I$my_top_srcdir/contrib/timpi/src/parallel/include/ -I$my_top_srcdir/contrib/timpi/src/utilities/include/ -I$ac_abs_top_builddir/contrib/timpi/src/utilities/include/ $CPPFLAGS],[LDFLAGS=-L$ac_abs_top_builddir/contrib/timpi/src/ $LDFLAGS],[TIMPI_DIR=$my_top_srcdir/contrib/timpi/],[--with-timpi-method=$my_method]])
127+
AX_SUBDIRS_CONFIGURE([contrib/metaphysicl],[[--with-cxx-std=20$acsm_cxx_version],[CPPFLAGS=-I$my_top_srcdir/contrib/timpi/src/algorithms/include/ -I$my_top_srcdir/contrib/timpi/src/parallel/include/ -I$my_top_srcdir/contrib/timpi/src/utilities/include/ -I$ac_abs_top_builddir/contrib/timpi/src/utilities/include/ $CPPFLAGS],[LDFLAGS=-L$ac_abs_top_builddir/contrib/timpi/src/ $LDFLAGS],[--with-future-timpi-dir=$prefix],[--with-timpi-method=$my_method]])
132128
],
133129
[AC_MSG_RESULT(<<< Configuring library with external MetaPhysicL support >>>)])
134130
],

src/systems/system_projection.C

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -31,12 +31,9 @@
3131
#include "libmesh/libmesh_common.h"
3232
#include "libmesh/compare_types.h"
3333

34-
// FIXME - having to do this with MetaPhysicL brings me shame - RHS
35-
#include "libmesh/ignore_warnings.h"
3634
// Template specialization declarations in here need to *precede* code
3735
// using them.
3836
#include "metaphysicl/dynamicsparsenumberarray_decl.h"
39-
#include "libmesh/restore_warnings.h"
4037

4138
using MetaPhysicL::DynamicSparseNumberArray;
4239

@@ -124,11 +121,8 @@ void convert_from_receive (SendT & received,
124121

125122

126123
#ifdef LIBMESH_HAVE_METAPHYSICL
127-
// FIXME - wrapping MetaPhysicL is shameful - RHS
128-
#include "libmesh/ignore_warnings.h"
129124
// Include MetaPhysicL definitions finally
130125
#include "metaphysicl/dynamicsparsenumberarray.h"
131-
#include "libmesh/restore_warnings.h"
132126

133127
// And make sure we instantiate the methods we'll need to use on them.
134128
#include "libmesh/dense_matrix_impl.h"

0 commit comments

Comments
 (0)