Files
solver/MbDCode/Variable.cpp
Aik-Siong Koh 371b13a9e0 runVelIC
2023-06-18 01:06:39 -06:00

47 lines
555 B
C++

#include "Variable.h"
using namespace MbD;
Variable::Variable()
{
value = 0.0;
}
Variable::Variable(const char* str) : name(str)
{
value = 0.0;
}
Variable::Variable(double val) : value(val)
{
}
void Variable::initialize()
{
}
void Variable::setName(std::string& str)
{
name = str;
}
const std::string& Variable::getName() const
{
return name;
}
double Variable::getValue()
{
return value;
}
std::ostream& MbD::Variable::printOn(std::ostream& s) const
{
return s << this->name;
}
void MbD::Variable::setValue(double val)
{
value = val;
}