Skip to content
Snippets Groups Projects
Commit 17e22f44 authored by Christophe Geuzaine's avatar Christophe Geuzaine
Browse files

trying to fix compile on sun, take 2

parent 1b311063
No related branches found
No related tags found
No related merge requests found
...@@ -33,7 +33,7 @@ class cartesianBox { ...@@ -33,7 +33,7 @@ class cartesianBox {
std::set<int> _active; std::set<int> _active;
double _X, _Y, _Z, _dxi, _deta, _dzeta; double _X, _Y, _Z, _dxi, _deta, _dzeta;
SVector3 _xiAxis, _etaAxis, _zetaAxis; SVector3 _xiAxis, _etaAxis, _zetaAxis;
std::map<int,scalar> _nodalValues; typename std::map<int, scalar> _nodalValues;
std::vector<SVector3> _normals; std::vector<SVector3> _normals;
std::vector<SPoint3> _points; std::vector<SPoint3> _points;
public: public:
...@@ -58,8 +58,8 @@ class cartesianBox { ...@@ -58,8 +58,8 @@ class cartesianBox {
_zetaAxis.normalize(); _zetaAxis.normalize();
} }
typename std::map<int,scalar>::const_iterator begin() const { return _nodalValues.begin(); } typename std::map<int, scalar>::const_iterator begin() const { return _nodalValues.begin(); }
typename std::map<int,scalar>::const_iterator end() const { return _nodalValues.end(); } typename std::map<int, scalar>::const_iterator end() const { return _nodalValues.end(); }
// add that in the ann search tool // add that in the ann search tool
void insert_point (double x, double y, double z) void insert_point (double x, double y, double z)
...@@ -154,7 +154,7 @@ class cartesianBox { ...@@ -154,7 +154,7 @@ class cartesianBox {
fprintf(f,"$MeshFormat\n2.1 0 8\n$EndMeshFormat\n"); fprintf(f,"$MeshFormat\n2.1 0 8\n$EndMeshFormat\n");
{ {
fprintf(f,"$Nodes\n%d\n",_nodalValues.size()); fprintf(f,"$Nodes\n%d\n",_nodalValues.size());
typename std::map<int,scalar>::const_iterator it = _nodalValues.begin(); typename std::map<int, scalar>::const_iterator it = _nodalValues.begin();
for ( ; it!=_nodalValues.end();++it){ for ( ; it!=_nodalValues.end();++it){
SPoint3 p = coordinates_of_node(it->first); SPoint3 p = coordinates_of_node(it->first);
fprintf(f,"%d %g %g %g\n",it->first,p.x(),p.y(),p.z()); fprintf(f,"%d %g %g %g\n",it->first,p.x(),p.y(),p.z());
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment