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 == NULL ) \
{ \
_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 1147 of file TempestOnlineMapIO.cpp.

1148 {
1149  std::cout << message << " [";
1150  int pos = barWidth * progress;
1151  for( int i = 0; i < barWidth; ++i )
1152  {
1153  if( i < pos )
1154  std::cout << "=";
1155  else if( i == pos )
1156  std::cout << ">";
1157  else
1158  std::cout << " ";
1159  }
1160  std::cout << "] " << int( progress * 100.0 ) << " %\r";
1161  std::cout.flush();
1162 }