Skip to content

Commit 3e17ce7

Browse files
committed
compile fix
1 parent d2ea17f commit 3e17ce7

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/module/spbgpu/ReadCGNS/zone.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ typedef int cgsize_t;
3030
* Constructor
3131
*-----------------------------*/
3232

33-
zone::zone(int i_file, int i_base, int i_zone, params _p) : zonesize{0,0,0}, zonename{""}, zonetype(ZoneType_t::ZoneTypeNull) {
33+
zone::zone(int i_file, int i_base, int i_zone, params _p) : zonesize{0,0,0}, zonename{""}, zonetype(CGNS_ENUMT(ZoneType_t)::CGNS_ENUMV(ZoneTypeNull)) {
3434
index_file = i_file;
3535
ibase = i_base;
3636
izone = i_zone;
@@ -50,7 +50,7 @@ int zone::read()
5050

5151
CoviseBase::sendInfo(" zone::read() started: name=%s , type=%d, num=%d", zonename, zonetype, izone);
5252

53-
if (zonetype==ZoneType_t::Structured) {
53+
if (zonetype==CGNS_ENUMT(ZoneType_t)::CGNS_ENUMV(Structured)) {
5454
cout<<cout_red<<"Error: Zone `" << zonename << "' is structured. Structured grids aren't supported yet."<<cout_norm<<endl;
5555
return FAIL;
5656
}

0 commit comments

Comments
 (0)