From 237cc6bfa16864b6908d6723219b13eb9f32c7b2 Mon Sep 17 00:00:00 2001 From: Oliver Sander <sander@igpm.rwth-aachen.de> Date: Fri, 14 Jan 2011 15:37:08 +0000 Subject: [PATCH] rename a few variables for easier legibility [[Imported from SVN: r6759]] --- .../coupling/rodcontinuumsteklovpoincarestep.hh | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/dune/gfe/coupling/rodcontinuumsteklovpoincarestep.hh b/dune/gfe/coupling/rodcontinuumsteklovpoincarestep.hh index 8ce9e016..50c3f325 100644 --- a/dune/gfe/coupling/rodcontinuumsteklovpoincarestep.hh +++ b/dune/gfe/coupling/rodcontinuumsteklovpoincarestep.hh @@ -389,15 +389,15 @@ void RodContinuumSteklovPoincareStep<RodGridType,ContinuumGridType>::iterate(Rig couplingBitfield[0] = true; LeafBoundaryPatch<RodGridType> couplingBoundary(*complex_.rodGrids_["rod"], couplingBitfield); - Dune::FieldVector<double,dim> resultantForce, resultantTorque; - resultantForce = rodAssembler_->getResultantForce(couplingBoundary, rodX, resultantTorque); + Dune::FieldVector<double,dim> rodForce, rodTorque; + rodForce = rodAssembler_->getResultantForce(couplingBoundary, rodX, rodTorque); // Flip orientation - resultantForce *= -1; - resultantTorque *= -1; + rodForce *= -1; + rodTorque *= -1; - std::cout << "resultant force: " << resultantForce << std::endl; - std::cout << "resultant torque: " << resultantTorque << std::endl; + std::cout << "resultant force: " << rodForce << ", " + << "resultant torque: " << rodTorque << std::endl; /////////////////////////////////////////////////////////////////// // Evaluate the Dirichlet-to-Neumann map for the continuum @@ -445,8 +445,8 @@ void RodContinuumSteklovPoincareStep<RodGridType,ContinuumGridType>::iterate(Rig // Compute the overall Steklov-Poincare residual /////////////////////////////////////////////////////////////// - Dune::FieldVector<double,3> residualForce = resultantForce + continuumForce; - Dune::FieldVector<double,3> residualTorque = resultantTorque + continuumTorque; + Dune::FieldVector<double,3> residualForce = rodForce + continuumForce; + Dune::FieldVector<double,3> residualTorque = rodTorque + continuumTorque; -- GitLab