Mesh Oriented datABase  (version 5.6.0)
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 1229 of file TempestOnlineMapIO.cpp.

1230 {
1231  std::cout << message << " [";
1232  int pos = barWidth * progress;
1233  for( int i = 0; i < barWidth; ++i )
1234  {
1235  if( i < pos )
1236  std::cout << "=";
1237  else if( i == pos )
1238  std::cout << ">";
1239  else
1240  std::cout << " ";
1241  }
1242  std::cout << "] " << int( progress * 100.0 ) << " %\r";
1243  std::cout.flush();
1244 }