Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix minor things in a failing test #130

Merged
merged 1 commit into from
Jan 15, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading