Mesh Oriented datABase  (version 5.5.1)
An array-based unstructured mesh library
TempestOnlineMapIO.cpp File Reference
#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.

Macros

#define CHECK_EXCEPTION(obj, type, varstr)
 

Functions

void print_progress (const int barWidth, const float progress, const char *message)
 

Macro Definition Documentation

◆ CHECK_EXCEPTION

#define CHECK_EXCEPTION (   obj,
  type,
  varstr 
)
Value:
{ \
if( obj == nullptr ) \
{ \
_EXCEPTION3( "Map file \"%s\" does not contain %s \"%s\"", strSource, type, varstr ); \
} \
}

Function Documentation

◆ 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 }