Mesh Oriented datABase  (version 5.4.1)
Array-based unstructured mesh datastructure
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.

Defines

#define CHECK_EXCEPTION(obj, type, varstr)

Functions

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

Define Documentation

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

Referenced by moab::TempestOnlineMap::ReadParallelMap().


Function Documentation

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

Definition at line 1162 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();
}
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines