Commit Graph

2861 Commits

Author SHA1 Message Date
Knut Morten Okstad
d1520df805 Added: protected method XMLInputBase::loadFile() 2021-10-25 21:53:15 +02:00
Knut Morten Okstad
ed32443cf5 Changed: RealArray instead of Vector for setSolution and updateRotations 2021-10-20 12:42:03 +02:00
Knut Morten Okstad
e3631fd746 Changed: Initialize h to 0 - not 1 - like for NewmarkMats (consistency) 2021-10-20 12:11:50 +02:00
Knut Morten Okstad
31e288e62b Changed: Use std::vector instead of utl::vector in the vector field
access methods, since they (or their users) don't really need
the linear algebra features that come with the utl::vector class
2021-10-20 12:11:50 +02:00
Knut Morten Okstad
d66cc98f25 Changed: Declare array arguments as RealArray instead of Vector
when the linear algebra functionality of the latter is not used
2021-10-20 12:11:50 +02:00
Knut Morten Okstad
685e849948 Changed: Use std::vector instead of utl::vector as argument types
in the [inject|extract]NodeVec methods, for increased flexibility.
2021-10-20 12:10:29 +02:00
Knut Morten Okstad
bdeacb8eef Fixed: eval2ndSolution should do nothing if opt.pSolOnly is true.
Changed: Return true if myVtf is null in all the writeGlv methods.
Then there is no need to check for domain decomposition and procId>0
since myVtf will always be null in that case.
Removed evalProjSolution, use writeGlvP with iStep=0 instead.
2021-10-14 08:19:06 +02:00
Arne Morten Kvarving
2fa4ede9ed fix gtest with ninja 2021-10-13 15:56:27 +02:00
Arne Morten Kvarving
a2f23a8cdf fixed: also build extra app dirs for the main module 2021-10-13 13:32:18 +02:00
Arne Morten Kvarving
573ce9199f fixed: add missing initializer 2021-10-12 11:17:07 +02:00
Arne Morten Kvarving
5413ce3539 add IFEM-CoSTA to common App build system 2021-10-11 11:43:36 +02:00
Knut Morten Okstad
d7ee36657e Changed: Made the second overloaded finalizeElement method
protected, such that all ASM-classes are forced to use the
version providing the most general interface.
Changed: No need to assign time to the Vec4 object within
the integration loop, doing it on construction instead.
2021-10-11 07:41:39 +02:00
Knut Morten Okstad
65c36818e3 Added: LHS-matrix buffers for linear Newmark integration 2021-10-08 13:19:25 +02:00
Knut Morten Okstad
1b58b79d5b Added: <nupdate> tag for NewmarkSIM.
Fixed: Missing newTangent in NonLinSIM::solveIteration.
2021-10-08 13:19:25 +02:00
Knut Morten Okstad
3089611cdc Changed: Derive class BDFMats directly from ElmMats.
It has nothing to do with the Newmark methods.
2021-10-08 13:19:25 +02:00
Knut Morten Okstad
bb95b66a7c Changed: No default value on the number of bases 2021-10-08 13:19:25 +02:00
Arne Morten Kvarving
b4ac1494a2 fixed: use multiplication instead of shift operator
this implicitly casts to int in the process.
if not the shift makes little sense as everything is done
for an unsigned char
2021-10-08 10:46:51 +02:00
Knut Morten Okstad
35b4aa95fa Changed: AdaptiveSIM::savePoints does not need a time argument,
as this class is for static/stationary problems only. The iStep
argument is not a time step counter, but a refinement step counter.
Also, the method is made protected.
2021-10-08 10:46:51 +02:00
Knut Morten Okstad
458b245b9f Changed: Removed unused newLHS argument in SIMbase::solveSystem() 2021-10-08 10:46:51 +02:00
Knut Morten Okstad
62ecb75f55 Changed: Removed the newLHS argument in the SystemMatrix::solve().
It was used only by PETScMatrix but also there we can use the
factored member inherited from SparseMatrix.
2021-10-08 10:46:51 +02:00
Knut Morten Okstad
9ffa4c49c8 Changed: Removed bool argument to SparseMatrix::solve (unused). 2021-10-08 10:46:51 +02:00
Arne Morten Kvarving
4230fe7495 avoid shadowing variables 2021-10-08 10:46:51 +02:00
Arne Morten Kvarving
6314afc628 remove unused variable 2021-10-08 10:46:51 +02:00
Arne Morten Kvarving
24456cb047 remove code that is unreachable 2021-10-08 10:46:51 +02:00
Arne Morten Kvarving
88bcd66794 mark some constructors explicit 2021-10-08 10:46:51 +02:00
Arne Morten Kvarving
ef2aca116d fixed: missing member initialization 2021-10-07 11:44:02 +02:00
Arne Morten Kvarving
3e9014c8d0 make some things const where possible 2021-10-07 11:44:02 +02:00
Arne Morten Kvarving
a75a0c7158 small reorganizations to aid static analyzers 2021-09-30 20:22:56 +02:00
Arne Morten Kvarving
d2ebc44b15 initialize some variables
to aid static analyzers
2021-09-30 20:22:56 +02:00
Arne Morten Kvarving
47ec469796 avoid some unnecessary stores 2021-09-30 20:22:56 +02:00
Arne Morten Kvarving
2927ed8fcf fixed: set intended variable, not the local one 2021-09-30 20:22:56 +02:00
Arne Morten Kvarving
703e3e668e avoid unnecessary initialization
value is immediately overwritten in block below
2021-09-30 20:22:56 +02:00
Arne Morten Kvarving
030b638180 fixed: potential memory leak for lfunc 2021-09-30 20:22:56 +02:00
Arne Morten Kvarving
4259c6b89a add some null pointer checks
does no harm and aids static analyzers
2021-09-30 20:22:56 +02:00
Arne Morten Kvarving
875d413829 expreval: use override 2021-09-30 15:36:08 +02:00
Arne Morten Kvarving
76f0c68499 expreval: mark constructors explicit 2021-09-30 15:36:08 +02:00
Eivind Fonn
00bfaf54c3 Changed: allow profiler to optionally be silent 2021-09-27 10:39:31 +02:00
Arne Morten Kvarving
845b3a1af4 add IFEM-CoSTA to jenkins 2021-09-24 12:33:55 +02:00
Arne Morten Kvarving
548adf7e5b fixed: allow flat dump format 2021-09-24 10:29:20 +02:00
Knut Morten Okstad
dba0163a5b Added: Attribute "printmapping" on <resultpoints> tag 2021-09-23 12:26:28 +02:00
Knut Morten Okstad
352b5ff97c Added: enum value NONE_UPTAN implying linear analysis, but with calculation
of tangent matrix at each step. Must use this when we have inhomogeneous
Dirichlet conditions, as a workaround. The ideal solution would be that the
integrands had a special RHS_ONLY mode that includes element matrix
calculation, but where only the force vector is assembled.
2021-09-23 06:46:02 +02:00
Knut Morten Okstad
19b3033e7c Fixed: Don't recalculate tangent in pure linear analysis 2021-09-22 08:05:33 +02:00
Arne Morten Kvarving
cff62ff7b9 added: ability to set a parameter value for ExprFunctions 2021-09-21 12:31:52 +02:00
Arne Morten Kvarving
c859e4231c fixed: use a separate valgrind log for tests with IFEM_USE_MEMCHECK
to allow parallel execution
2021-09-14 08:19:12 +02:00
Knut Morten Okstad
9193befb12 Fixed: Duplicated \param in the doxy 2021-09-10 14:58:26 +02:00
Knut Morten Okstad
6f5b57ec0e Fixed: Skip all points with zero coordinates (from zero-knotspan elements)
in the traction vector output.
2021-09-10 14:58:26 +02:00
Knut Morten Okstad
319feceb55 Added: <saveTrac/> tag inside <postprocessing> context for traction output 2021-09-10 14:58:26 +02:00
Arne Morten Kvarving
fd8ee565d6 fix types in ranged for loops 2021-09-10 12:16:28 +02:00
Arne Morten Kvarving
9dd8bbc23c add explicit std::move calls to avoid copies 2021-09-10 12:16:28 +02:00
Arne Morten Kvarving
1459d5fd96 add missing using statement 2021-09-10 12:16:28 +02:00