Skip to content
Snippets Groups Projects
Commit 92ff3a2d authored by Karsten Rink's avatar Karsten Rink
Browse files

fixed a few more errors, the PointVec thing seems to be about the only one left

parent 571a0a87
No related branches found
No related tags found
No related merge requests found
...@@ -8,7 +8,6 @@ ...@@ -8,7 +8,6 @@
#include "ProcessInfo.h" #include "ProcessInfo.h"
#include "GEOObjects.h" //for SourceTerm #include "GEOObjects.h" //for SourceTerm
#include "GridAdapter.h"
FEMCondition::FEMCondition(const std::string &geometry_name, CondType t) FEMCondition::FEMCondition(const std::string &geometry_name, CondType t)
: _type(t), _geoName("[unspecified]"), _associated_geometry(geometry_name) : _type(t), _geoName("[unspecified]"), _associated_geometry(geometry_name)
...@@ -22,13 +21,13 @@ FEMCondition::FEMCondition(const std::string &geometry_name, CondType t) ...@@ -22,13 +21,13 @@ FEMCondition::FEMCondition(const std::string &geometry_name, CondType t)
FEMCondition::FEMCondition(const std::string &geometry_name, FiniteElement::ProcessType pt, FEMCondition::FEMCondition(const std::string &geometry_name, FiniteElement::ProcessType pt,
FiniteElement::PrimaryVariable pv, GeoLib::GEOTYPE gt, const std::string &gn, FiniteElement::PrimaryVariable pv, GeoLib::GEOTYPE gt, const std::string &gn,
FiniteElement::DistributionType dt, CondType ct) FiniteElement::DistributionType dt, CondType ct)
: ProcessInfo(pt, pv, NULL), GeoInfo(gt, NULL), DistributionInfo(dt), _type(ct), : ProcessInfo(pt, pv/*, NULL*/), GeoInfo(gt, NULL), DistributionInfo(dt), _type(ct),
_geoName(gn), _associated_geometry(geometry_name) _geoName(gn), _associated_geometry(geometry_name)
{ {
} }
FEMCondition::FEMCondition(const FEMCondition &cond, CondType t) FEMCondition::FEMCondition(const FEMCondition &cond, CondType t)
: ProcessInfo(cond.getProcessType(), cond.getProcessPrimaryVariable(), NULL), : ProcessInfo(cond.getProcessType(), cond.getProcessPrimaryVariable()/*, NULL*/),
GeoInfo(cond.getGeoType(), cond.getGeoObj()), GeoInfo(cond.getGeoType(), cond.getGeoObj()),
DistributionInfo(cond.getProcessDistributionType()), DistributionInfo(cond.getProcessDistributionType()),
_type(t), _type(t),
......
...@@ -12,17 +12,17 @@ ...@@ -12,17 +12,17 @@
#include "GeoInfo.h" #include "GeoInfo.h"
GeoInfo::GeoInfo() : GeoInfo::GeoInfo() :
_geo_type(GEOLIB::INVALID), _geo_obj(NULL) _geo_type(GeoLib::INVALID), _geo_obj(NULL)
{} {}
GeoInfo::GeoInfo(GEOLIB::GEOTYPE geo_type, const GEOLIB::GeoObject* geo_obj) : GeoInfo::GeoInfo(GeoLib::GEOTYPE geo_type, const GeoLib::GeoObject* geo_obj) :
_geo_type(geo_type), _geo_obj(geo_obj) _geo_type(geo_type), _geo_obj(geo_obj)
{} {}
GeoInfo::~GeoInfo() GeoInfo::~GeoInfo()
{} {}
GEOLIB::GEOTYPE GeoInfo::getGeoType () const GeoLib::GEOTYPE GeoInfo::getGeoType () const
{ {
return _geo_type; return _geo_type;
} }
...@@ -31,32 +31,32 @@ std::string GeoInfo::getGeoTypeAsString () const ...@@ -31,32 +31,32 @@ std::string GeoInfo::getGeoTypeAsString () const
{ {
switch (_geo_type) switch (_geo_type)
{ {
case GEOLIB::POINT: case GeoLib::POINT:
return "POINT"; return "POINT";
case GEOLIB::POLYLINE: case GeoLib::POLYLINE:
return "POLYLINE"; return "POLYLINE";
case GEOLIB::SURFACE: case GeoLib::SURFACE:
return "SURFACE"; return "SURFACE";
case GEOLIB::VOLUME: case GeoLib::VOLUME:
return "VOLUME"; return "VOLUME";
case GEOLIB::GEODOMAIN: case GeoLib::GEODOMAIN:
return "DOMAIN"; return "DOMAIN";
default: default:
return ""; return "";
} }
} }
void GeoInfo::setGeoType (GEOLIB::GEOTYPE geo_type) void GeoInfo::setGeoType (GeoLib::GEOTYPE geo_type)
{ {
_geo_type = geo_type; _geo_type = geo_type;
} }
const GEOLIB::GeoObject* GeoInfo::getGeoObj () const const GeoLib::GeoObject* GeoInfo::getGeoObj () const
{ {
return _geo_obj; return _geo_obj;
} }
void GeoInfo::setGeoObj (const GEOLIB::GeoObject* geo_obj) void GeoInfo::setGeoObj (const GeoLib::GeoObject* geo_obj)
{ {
_geo_obj = geo_obj; _geo_obj = geo_obj;
} }
...@@ -5,15 +5,15 @@ ...@@ -5,15 +5,15 @@
* Author: TF * Author: TF
*/ */
#include "rf_pcs.h" //#include "rf_pcs.h"
#include <ProcessInfo.h> #include <ProcessInfo.h>
ProcessInfo::ProcessInfo() : ProcessInfo::ProcessInfo() :
_pcs_type (FiniteElement::INVALID_PROCESS), _pcs_pv (FiniteElement::INVALID_PV), _pcs (NULL) _pcs_type (FiniteElement::INVALID_PROCESS), _pcs_pv (FiniteElement::INVALID_PV)//, _pcs (NULL)
{} {}
ProcessInfo::ProcessInfo (FiniteElement::ProcessType pcs_type, FiniteElement::PrimaryVariable pcs_pv, CRFProcess* pcs) : ProcessInfo::ProcessInfo (FiniteElement::ProcessType pcs_type, FiniteElement::PrimaryVariable pcs_pv/*, CRFProcess* pcs*/) :
_pcs_type (pcs_type), _pcs_pv (pcs_pv), _pcs (pcs) _pcs_type (pcs_type), _pcs_pv (pcs_pv)//, _pcs (pcs)
{} {}
void ProcessInfo::setProcessType (FiniteElement::ProcessType pcs_type) void ProcessInfo::setProcessType (FiniteElement::ProcessType pcs_type)
...@@ -25,12 +25,12 @@ void ProcessInfo::setProcessPrimaryVariable (FiniteElement::PrimaryVariable pcs_ ...@@ -25,12 +25,12 @@ void ProcessInfo::setProcessPrimaryVariable (FiniteElement::PrimaryVariable pcs_
{ {
_pcs_pv = pcs_pv; _pcs_pv = pcs_pv;
} }
/*
void ProcessInfo::setProcess (CRFProcess* pcs) void ProcessInfo::setProcess (CRFProcess* pcs)
{ {
_pcs = pcs; _pcs = pcs;
} }
*/
FiniteElement::ProcessType ProcessInfo::getProcessType () const FiniteElement::ProcessType ProcessInfo::getProcessType () const
{ {
return _pcs_type; return _pcs_type;
...@@ -40,11 +40,11 @@ FiniteElement::PrimaryVariable ProcessInfo::getProcessPrimaryVariable () const ...@@ -40,11 +40,11 @@ FiniteElement::PrimaryVariable ProcessInfo::getProcessPrimaryVariable () const
{ {
return _pcs_pv; return _pcs_pv;
} }
/*
CRFProcess* ProcessInfo::getProcess () const CRFProcess* ProcessInfo::getProcess () const
{ {
return _pcs; return _pcs;
} }
*/
ProcessInfo::~ProcessInfo() ProcessInfo::~ProcessInfo()
{} {}
...@@ -10,7 +10,7 @@ ...@@ -10,7 +10,7 @@
// FEM // FEM
#include "FEMEnums.h" #include "FEMEnums.h"
class CRFProcess; //class CRFProcess;
/** /**
* \brief Class ProcessInfo stores the process type, * \brief Class ProcessInfo stores the process type,
...@@ -36,7 +36,7 @@ public: ...@@ -36,7 +36,7 @@ public:
* @param pcs a pointer to the process * @param pcs a pointer to the process
* @return * @return
*/ */
ProcessInfo (FiniteElement::ProcessType pcs_type, FiniteElement::PrimaryVariable pcs_pv, CRFProcess* pcs); ProcessInfo (FiniteElement::ProcessType pcs_type, FiniteElement::PrimaryVariable pcs_pv/*, CRFProcess* pcs*/);
/** /**
* Sets the process type. * Sets the process type.
...@@ -54,7 +54,7 @@ public: ...@@ -54,7 +54,7 @@ public:
* Sets the value for the pointer to an object of class CRFProcess. * Sets the value for the pointer to an object of class CRFProcess.
* @param pcs the pointer to an object of class CRFProcess * @param pcs the pointer to an object of class CRFProcess
*/ */
void setProcess (CRFProcess* pcs); //void setProcess (CRFProcess* pcs);
/** /**
* Get the process type. * Get the process type.
...@@ -72,7 +72,7 @@ public: ...@@ -72,7 +72,7 @@ public:
* Get a pointer to an object of type CRFProcess. * Get a pointer to an object of type CRFProcess.
* @return a pointer to an object of type CRFProcess * @return a pointer to an object of type CRFProcess
*/ */
CRFProcess* getProcess () const; //CRFProcess* getProcess () const;
virtual ~ProcessInfo(); virtual ~ProcessInfo();
...@@ -89,6 +89,6 @@ protected: ...@@ -89,6 +89,6 @@ protected:
/** /**
* pointer to the object of class CRFProcess * pointer to the object of class CRFProcess
*/ */
CRFProcess* _pcs; //CRFProcess* _pcs;
}; };
#endif /* PROCESSINFO_H_ */ #endif /* PROCESSINFO_H_ */
...@@ -35,7 +35,7 @@ void GEOObjects::addPointVec(std::vector<Point*>* points, ...@@ -35,7 +35,7 @@ void GEOObjects::addPointVec(std::vector<Point*>* points,
double eps) double eps)
{ {
isUniquePointVecName(name); isUniquePointVecName(name);
_pnt_vecs.push_back(new PointVec(name, points, pnt_id_name_map, PointVec::POINT, eps)); _pnt_vecs.push_back(new PointVec(name, points, pnt_id_name_map, PointVec::POINT/*, eps*/));
} }
bool GEOObjects::appendPointVec(std::vector<Point*> const& new_points, bool GEOObjects::appendPointVec(std::vector<Point*> const& new_points,
......
...@@ -10,6 +10,7 @@ include_directories( ...@@ -10,6 +10,7 @@ include_directories(
${CMAKE_SOURCE_DIR}/BaseLib ${CMAKE_SOURCE_DIR}/BaseLib
${CMAKE_SOURCE_DIR}/FemLib ${CMAKE_SOURCE_DIR}/FemLib
${CMAKE_SOURCE_DIR}/GeoLib ${CMAKE_SOURCE_DIR}/GeoLib
${CMAKE_SOURCE_DIR}/MathLib
${CMAKE_SOURCE_DIR}/MeshLib ${CMAKE_SOURCE_DIR}/MeshLib
) )
......
...@@ -13,7 +13,7 @@ ProjectData::ProjectData() ...@@ -13,7 +13,7 @@ ProjectData::ProjectData()
ProjectData::~ProjectData() ProjectData::~ProjectData()
{ {
delete _geoObjects; delete _geoObjects;
for (std::map<std::string, MeshLib::CFEMesh*>::iterator it = _msh_vec.begin(); for (std::map<std::string, MeshLib::Mesh*>::iterator it = _msh_vec.begin();
it != _msh_vec.end(); ++it) it != _msh_vec.end(); ++it)
delete it->second; delete it->second;
size_t nCond (_cond_vec.size()); size_t nCond (_cond_vec.size());
...@@ -21,13 +21,13 @@ ProjectData::~ProjectData() ...@@ -21,13 +21,13 @@ ProjectData::~ProjectData()
delete _cond_vec[i]; delete _cond_vec[i];
} }
void ProjectData::addMesh(MeshLib::CFEMesh* mesh, std::string &name) void ProjectData::addMesh(MeshLib::Mesh* mesh, std::string &name)
{ {
isUniqueMeshName(name); isUniqueMeshName(name);
_msh_vec[name] = mesh; _msh_vec[name] = mesh;
} }
const MeshLib::CFEMesh* ProjectData::getMesh(const std::string &name) const const MeshLib::Mesh* ProjectData::getMesh(const std::string &name) const
{ {
return _msh_vec.find(name)->second; return _msh_vec.find(name)->second;
} }
...@@ -192,7 +192,7 @@ bool ProjectData::isUniqueMeshName(std::string &name) ...@@ -192,7 +192,7 @@ bool ProjectData::isUniqueMeshName(std::string &name)
if (count > 1) if (count > 1)
cpName = cpName + "-" + number2str(count); cpName = cpName + "-" + number2str(count);
for (std::map<std::string, MeshLib::CFEMesh*>::iterator it = _msh_vec.begin(); for (std::map<std::string, MeshLib::Mesh*>::iterator it = _msh_vec.begin();
it != _msh_vec.end(); ++it) it != _msh_vec.end(); ++it)
if ( cpName.compare(it->first) == 0 ) if ( cpName.compare(it->first) == 0 )
isUnique = false; isUnique = false;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment