Skip to content

Commit

Permalink
Fix minor things in a failing test (#130)
Browse files Browse the repository at this point in the history
  • Loading branch information
alxbilger authored Jan 15, 2024
1 parent 2026a2e commit 171ad25
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion BeamAdapter_test/component/mapping/BeamLengthMappingTest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
* Contact information: [email protected] *
******************************************************************************/
#include <string>
#include <sofa/simulation/graph/SimpleApi.h>
using std::string ;
#include <sofa/component/mapping/testing/MappingTestCreation.h>
#include <sofa/simulation/graph/DAGSimulation.h>
Expand Down Expand Up @@ -114,14 +115,17 @@ struct BeamLengthMappingTest : public sofa::mapping_test::Mapping_test<_BeamLeng
const int Nout=2; // WARNING this number has to be changed to test with more than one beam !!
const int Nin=3;

sofa::simpleapi::importPlugin("Sofa.Component.ODESolver.Backward");
sofa::simpleapi::importPlugin("Sofa.Component.LinearSolver.Iterative");

string scene =
"<?xml version='1.0'?>"
""
"<Node name='Root' gravity='0 0 0' time='0' animate='0'>"
" <EulerImplicit rayleighStiffness='0.08' rayleighMass='0.08' printLog='false' />"
" <CGLinearSolver iterations='100' threshold='1e-10' tolerance='1e-15' />"
" <Mesh name='meshSuture' edges='0 1 1 2' />"
" <MechanicalObject template='Rigid' name='DOFs' showIndices='0' position='0 0 0 0 0 0 1 1 0 0 0 0 0 1 2 0 0 0 0 0 1' showObject='1'/>"
" <MechanicalObject template='Rigid3' name='DOFs' showIndices='0' position='0 0 0 0 0 0 1 1 0 0 0 0 0 1 2 0 0 0 0 0 1' showObject='1'/>"
" <BeamInterpolation name='Interpol' radius='0.3' defaultYoungModulus='1e7' DOF0TransformNode0='0.2 0.3 0.1 0 0 0 1 0.12 0.3 0.1 0 0 0.3826834 0.9238795 ' DOF1TransformNode1='-0.3 0.3 0.1 0 0 0 1 -0.2 0.25 0 0 0 0 1' dofsAndBeamsAligned='0' straight='0'/>"
" <Node name='Map' > "
" <MechanicalObject template='Vec1d' name='mappedDOFs' position='0.5 0.8' />"
Expand Down

0 comments on commit 171ad25

Please sign in to comment.