Revision 7ecfd21e446422ee89338b574f7d0799be632330 authored by Tom Fischer on 13 July 2023, 16:24:13 UTC, committed by Tom Fischer on 13 July 2023, 16:24:13 UTC
Pass fixed output times to time stepper See merge request ogs/ogs!4652
GeoType.cpp
/**
* \file
* \author Thomas Fischer
* \date 2010-12-01
* \brief Implementation of GEOTYPE enumeration helper functions.
*
* \copyright
* Copyright (c) 2012-2023, OpenGeoSys Community (http://www.opengeosys.org)
* Distributed under a Modified BSD License.
* See accompanying file LICENSE.txt or
* http://www.opengeosys.org/project/license
*
*/
#include "GeoType.h"
#include <cstdlib>
#include "BaseLib/Error.h"
namespace GeoLib
{
std::string convertGeoTypeToString(GEOTYPE geo_type)
{
switch (geo_type)
{
case GEOTYPE::POINT:
return "POINT";
case GEOTYPE::POLYLINE:
return "POLYLINE";
case GEOTYPE::SURFACE:
return "SURFACE";
}
// Cannot happen, because switch covers all cases.
// Used to silence compiler warning.
OGS_FATAL("convertGeoTypeToString(): Given geo type is not supported");
}
} // end namespace GeoLib
![swh spinner](/static/img/swh-spinner.gif)
Computing file changes ...