From f263131543f4312c12c7183e2cb8b9c78244c0cc Mon Sep 17 00:00:00 2001 From: Thomas Witkowski <thomas.witkowski@gmx.de> Date: Wed, 4 Aug 2010 15:20:48 +0000 Subject: [PATCH] Fixed small bug in mesh usage in coupled problems. --- AMDiS/libtool | 24 ++++++++++++------------ AMDiS/src/MacroReader.cc | 5 ++--- AMDiS/src/ProblemVec.cc | 6 ++---- 3 files changed, 16 insertions(+), 19 deletions(-) diff --git a/AMDiS/libtool b/AMDiS/libtool index 7d166039..98643908 100755 --- a/AMDiS/libtool +++ b/AMDiS/libtool @@ -44,7 +44,7 @@ available_tags=" CXX F77" # ### BEGIN LIBTOOL CONFIG -# Libtool was configured on host deimos103: +# Libtool was configured on host deimos102: # Shell to use when invoking shell scripts. SHELL="/bin/sh" @@ -82,13 +82,13 @@ AR="ar" AR_FLAGS="cru" # A C compiler. -LTCC="/licsoft/libraries/openmpi/1.2.6/64bit/bin/mpicc" +LTCC="gcc" # LTCC compiler flags. LTCFLAGS="-g -O2" # A language-specific compiler. -CC="/licsoft/libraries/openmpi/1.2.6/64bit/bin/mpicc" +CC="gcc" # Is the compiler the GNU C compiler? with_gcc=yes @@ -171,7 +171,7 @@ dlopen_self=unknown dlopen_self_static=unknown # Compiler flag to prevent dynamic linking. -link_static_flag="" +link_static_flag="-static" # Compiler flag to turn off builtin functions. no_builtin_flag=" -fno-builtin" @@ -7263,7 +7263,7 @@ disable_libs=static # End: # ### BEGIN LIBTOOL TAG CONFIG: CXX -# Libtool was configured on host deimos103: +# Libtool was configured on host deimos102: # Shell to use when invoking shell scripts. SHELL="/bin/sh" @@ -7301,13 +7301,13 @@ AR="ar" AR_FLAGS="cru" # A C compiler. -LTCC="/licsoft/libraries/openmpi/1.2.6/64bit/bin/mpicc" +LTCC="gcc" # LTCC compiler flags. LTCFLAGS="-g -O2" # A language-specific compiler. -CC="/licsoft/libraries/openmpi/1.2.6/64bit/bin/mpicxx" +CC="g++" # Is the compiler the GNU C compiler? with_gcc=yes @@ -7390,7 +7390,7 @@ dlopen_self=unknown dlopen_self_static=unknown # Compiler flag to prevent dynamic linking. -link_static_flag="" +link_static_flag="-static" # Compiler flag to turn off builtin functions. no_builtin_flag=" -fno-builtin" @@ -7457,11 +7457,11 @@ predeps="" # Dependencies to place after the objects being linked to create a # shared library. -postdeps="-lmpi_cxx -lmpi -lopen-rte -lopen-pal -libverbs -lrt -lnuma -ldl -lnsl -lutil -ldl -lstdc++ -lm -lgcc_s -lpthread -lc -lgcc_s" +postdeps="-lstdc++ -lm -lgcc_s -lc -lgcc_s" # The library search path used internally by the compiler when linking # a shared library. -compiler_lib_search_path="-L/usr/lib64 -L/licsoft/libraries/openmpi/1.2.6/64bit/lib -L/usr/lib64/gcc/x86_64-suse-linux/4.1.2 -L/usr/lib64/gcc/x86_64-suse-linux/4.1.2/../../../../lib64 -L/lib/../lib64 -L/usr/lib/../lib64 -L/fastfs/wir/local/lib -L/usr/lib64/gcc/x86_64-suse-linux/4.1.2/../../../../x86_64-suse-linux/lib -L/usr/lib64/gcc/x86_64-suse-linux/4.1.2/../../.." +compiler_lib_search_path="-L/usr/lib64/gcc/x86_64-suse-linux/4.1.2 -L/usr/lib64/gcc/x86_64-suse-linux/4.1.2/../../../../lib64 -L/lib/../lib64 -L/usr/lib/../lib64 -L/fastfs/wir/local/lib -L/usr/lib64/gcc/x86_64-suse-linux/4.1.2/../../../../x86_64-suse-linux/lib -L/usr/lib64/gcc/x86_64-suse-linux/4.1.2/../../.." # Method to check whether dependent libraries are shared objects. deplibs_check_method="pass_all" @@ -7568,7 +7568,7 @@ include_expsyms="" # ### BEGIN LIBTOOL TAG CONFIG: F77 -# Libtool was configured on host deimos103: +# Libtool was configured on host deimos102: # Shell to use when invoking shell scripts. SHELL="/bin/sh" @@ -7606,7 +7606,7 @@ AR="ar" AR_FLAGS="cru" # A C compiler. -LTCC="/licsoft/libraries/openmpi/1.2.6/64bit/bin/mpicc" +LTCC="gcc" # LTCC compiler flags. LTCFLAGS="-g -O2" diff --git a/AMDiS/src/MacroReader.cc b/AMDiS/src/MacroReader.cc index 4f5fe6c4..08dd7bdf 100644 --- a/AMDiS/src/MacroReader.cc +++ b/AMDiS/src/MacroReader.cc @@ -247,9 +247,8 @@ namespace AMDiS { } } - if (!macroInfo->bound_set) { - macroInfo->dirichletBoundary(); - } + if (!macroInfo->bound_set) + macroInfo->dirichletBoundary(); if (mesh->getDim() > 1) boundaryDOFs(mesh); diff --git a/AMDiS/src/ProblemVec.cc b/AMDiS/src/ProblemVec.cc index d27f3eb7..f4e5eca3 100644 --- a/AMDiS/src/ProblemVec.cc +++ b/AMDiS/src/ProblemVec.cc @@ -199,8 +199,7 @@ namespace AMDiS { // Initialize the meshes if there is no serialization file. for (int i = 0; i < static_cast<int>(meshes.size()); i++) { - bool initMesh = initFlag.isSet(INIT_MESH) || - (adoptProblem && adoptFlag.isSet(INIT_MESH)); + bool initMesh = initFlag.isSet(INIT_MESH); if (initMesh && meshes[i] && !(meshes[i]->isInitialized())) meshes[i]->initialize(); @@ -220,8 +219,7 @@ namespace AMDiS { // === do global refinements === for (unsigned int i = 0; i < meshes.size(); i++) { - bool initMesh = initFlag.isSet(INIT_MESH) || - (adoptProblem && adoptFlag.isSet(INIT_MESH)); + bool initMesh = initFlag.isSet(INIT_MESH); if (initMesh && meshes[i]) refinementManager->globalRefine(meshes[i], globalRefinements); -- GitLab