#include "FiniteElementTools.h"
#include "moab/Remapping/TempestOnlineMap.hpp"
#include "moab/TupleList.hpp"
#include "netcdfcpp.h"
Go to the source code of this file.
|
void | print_progress (const int barWidth, const float progress, const char *message) |
|
◆ CHECK_EXCEPTION
#define CHECK_EXCEPTION |
( |
|
obj, |
|
|
|
type, |
|
|
|
varstr |
|
) |
| |
Value: { \
if( obj == nullptr ) \
{ \
_EXCEPTION3( "Map file \"%s\" does not contain %s \"%s\"", strSource, type, varstr ); \
} \
}
◆ print_progress()
void print_progress |
( |
const int |
barWidth, |
|
|
const float |
progress, |
|
|
const char * |
message |
|
) |
| |
Definition at line 1186 of file TempestOnlineMapIO.cpp.
1187 {
1188 std::cout << message << " [";
1189 int pos = barWidth * progress;
1190 for( int i = 0; i < barWidth; ++i )
1191 {
1192 if( i < pos )
1193 std::cout << "=";
1194 else if( i == pos )
1195 std::cout << ">";
1196 else
1197 std::cout << " ";
1198 }
1199 std::cout << "] " << int( progress * 100.0 ) << " %\r";
1200 std::cout.flush();
1201 }