fix warnings

This commit is contained in:
Joachim Schoeberl 2022-02-16 13:37:32 +01:00
parent 56c86dfb49
commit bb44c7b0c3
2 changed files with 4 additions and 4 deletions

View File

@ -131,7 +131,7 @@ namespace netgen
public: public:
UserPoint() = default; UserPoint() = default;
UserPoint (Point<3> p, int _index) : Point<3>(p), index(_index) { ; } UserPoint (Point<3> p, int _index) : Point<3>(p), index(_index) { ; }
UserPoint (Point<3> p, const string & _name) : Point<3>(p), name(_name), index(-1) { ; } UserPoint (Point<3> p, const string & _name) : Point<3>(p), index(-1), name(_name) { ; }
int GetIndex() const { return index; } int GetIndex() const { return index; }
const string & GetName() const { return name; } const string & GetName() const { return name; }
void DoArchive(Archive& archive) void DoArchive(Archive& archive)

View File

@ -245,8 +245,8 @@ namespace netgen::cg
return 0; return 0;
int section; int section;
int start = 1; // int start = 1;
int end = ne; // int end = ne;
#if CGNS_VERSION < 3400 #if CGNS_VERSION < 3400
cg_section_write(fn,base,zone, name.c_str(), MIXED, ne_before+1, ne_before+ne, 0, &data[0], &section); cg_section_write(fn,base,zone, name.c_str(), MIXED, ne_before+1, ne_before+ne, 0, &data[0], &section);
#else #else
@ -762,7 +762,7 @@ namespace netgen
imax1 = max(imax1, el.si); imax1 = max(imax1, el.si);
int ne_written = 0; int ne_written = 0;
int meshdim = mesh.GetDimension(); // int meshdim = mesh.GetDimension();
for(const auto i : IntRange(imax3)) for(const auto i : IntRange(imax3))
ne_written += cg::WriteCGNSRegion(mesh, 3, i+1, fn, base, zone, ne_written); ne_written += cg::WriteCGNSRegion(mesh, 3, i+1, fn, base, zone, ne_written);