From f27f7641c73f0e5b6525c75cd006730b05981bed Mon Sep 17 00:00:00 2001 From: Knut Morten Okstad Date: Thu, 5 Mar 2026 08:38:53 +0100 Subject: [PATCH 1/3] Added: virtual methods advanceStep() --- src/ASM/IntegrandBase.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/ASM/IntegrandBase.h b/src/ASM/IntegrandBase.h index cf9c2a3e6..4fa453f4f 100644 --- a/src/ASM/IntegrandBase.h +++ b/src/ASM/IntegrandBase.h @@ -352,6 +352,11 @@ class IntegrandBase : public Integrand //! \brief Returns nodal DOF flags for monolithic coupled integrands. virtual void getNodalDofTypes(std::vector&) const {} + //! \brief Advances the time step scheme one step (for transient problems). + virtual bool advanceStep() { return false; } + //! \brief Advances the time step scheme one step (for transient problems). + virtual bool advanceStep(const TimeDomain&) { return this->advanceStep(); } + //! \brief Returns current time/load parameter for 2ndary solution evaluation. double getTimeLevel() const { return myTime; } From 4d06d6e4a5490b6ed56a3c28a2d53ba1ae4ea5fa Mon Sep 17 00:00:00 2001 From: Knut Morten Okstad Date: Thu, 27 Aug 2026 15:13:10 +0200 Subject: [PATCH 2/3] Changed: use utl::zero_print_tol also when printing Vec3 objects --- src/Utility/Vec3Oper.C | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Utility/Vec3Oper.C b/src/Utility/Vec3Oper.C index 6711fb2e8..7ef641b4a 100644 --- a/src/Utility/Vec3Oper.C +++ b/src/Utility/Vec3Oper.C @@ -139,7 +139,7 @@ bool operator< (const Vec3& a, const Vec3& b) std::ostream& operator<< (std::ostream& os, const Vec3& a) { - return a.print(os); + return a.print(os,utl::zero_print_tol); } From 5c57eac785d2aed1952badb594ec9e17d5310beb Mon Sep 17 00:00:00 2001 From: Knut Morten Okstad Date: Thu, 27 Aug 2026 15:13:19 +0200 Subject: [PATCH 3/3] Added: Command-line option -zero_print_tol for adjusting utl::zero_print_tol --- src/SIM/SIMoptions.C | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/SIM/SIMoptions.C b/src/SIM/SIMoptions.C index 38938ffbb..7803cb79e 100644 --- a/src/SIM/SIMoptions.C +++ b/src/SIM/SIMoptions.C @@ -16,7 +16,7 @@ #include "Profiler.h" #include "IFEM.h" #include "GlbL2projector.h" - +#include "print_tol.h" #include "tinyxml2.h" #ifdef HAVE_MPI #include @@ -373,6 +373,8 @@ bool SIMoptions::parseOldOptions (int argc, char** argv, int& i) ncv = atoi(argv[++i]); else if (!strcmp(argv[i],"-shift") && i < argc-1) shift = atof(argv[++i]); + else if (!strcmp(argv[i],"-zero_print_tol") && i < argc-1) + utl::zero_print_tol = atof(argv[++i]); else if (!strncasecmp(argv[i],"-indentprof",11)) Profiler::indentReport = true; else if (!strcasecmp(argv[i],"-controller"))