Files
solver/MbDCode/PrescribedMotion.cpp.bak
2023-05-05 19:01:53 -06:00

20 lines
484 B
C++

#include <memory>
#include <typeinfo>
#include <assert.h>
#include "PrescribedMotion.h"
#include "EndFrameqct.h"
using namespace MbD;
void PrescribedMotion::connectsItoJ(std::shared_ptr<EndFramec> frmi, std::shared_ptr<EndFramec> frmj)
{
Joint::connectsItoJ(frmi, frmj);
if (typeid(frmI).name() != "EndFrameqct") {
std::shared_ptr<EndFramec> newFrmI;
newFrmI = std::make_shared<EndFrameqct>();
std::swap(frmI, newFrmI);
assert(typeid(frmI).name() != "EndFrameqct");
}
}