MOAB: Mesh Oriented datABase  (version 5.2.1)
TempestOnlineMapIO.cpp File Reference
#include "FiniteElementTools.h"
#include "moab/Remapping/TempestOnlineMap.hpp"
#include "netcdfcpp.h"
+ Include dependency graph for TempestOnlineMapIO.cpp:

Go to the source code of this file.

Functions

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

Function Documentation

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

Definition at line 927 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