|
MOAB: Mesh Oriented datABase
(version 5.4.1)
|
#include "FiniteElementTools.h"#include "moab/Remapping/TempestOnlineMap.hpp"#include "moab/TupleList.hpp"#include "netcdfcpp.h"
Include dependency graph for TempestOnlineMapIO.cpp:Go to the source code of this file.
Defines | |
| #define | CHECK_EXCEPTION(obj, type, varstr) |
Functions | |
| void | print_progress (const int barWidth, const float progress, const char *message) |
| #define CHECK_EXCEPTION | ( | obj, | |
| type, | |||
| varstr | |||
| ) |
{ \
if( obj == NULL ) \
{ \
_EXCEPTION3( "Map file \"%s\" does not contain %s \"%s\"", strSource, type, varstr ); \
} \
}
Referenced by moab::TempestOnlineMap::ReadParallelMap().
| void print_progress | ( | const int | barWidth, |
| const float | progress, | ||
| const char * | message | ||
| ) |
Definition at line 1150 of file TempestOnlineMapIO.cpp.
{
std::cout << message << " [";
int pos = barWidth * progress;
for( int i = 0; i < barWidth; ++i )
{
if( i < pos )
std::cout << "=";
else if( i == pos )
std::cout << ">";
else
std::cout << " ";
}
std::cout << "] " << int( progress * 100.0 ) << " %\r";
std::cout.flush();
}