Skip to content
Snippets Groups Projects
Commit f05f93a5 authored by Tomáš Oberhuber's avatar Tomáš Oberhuber
Browse files

Renaming mTimerRT to tnlTimerRT an mTimerCPU to tnlTimerCPU.

parent 57376b17
No related branches found
No related tags found
No related merge requests found
......@@ -28,8 +28,8 @@ headers = \
tnlConfigDescriptionParser.ih \
tnlConfigDescriptionScanner.h \
tnlParameterContainer.h \
mTimerCPU.h \
mTimerRT.h \
tnlTimerCPU.h \
tnlTimerRT.h \
mVector.h \
compress-file.h \
mfilename.h \
......@@ -44,8 +44,8 @@ sources = tnlConfigDescription.cpp \
tnlConfigDescriptionScanner.cpp \
tnlConfigDescriptionParser.cpp \
tnlParameterContainer.cpp \
mTimerCPU.cpp \
mTimerRT.cpp \
tnlTimerCPU.cpp \
tnlTimerRT.cpp \
compress-file.cpp \
mfilename.cpp \
mpi-supp.cpp \
......
/***************************************************************************
mTimerCPU.cpp - description
tnlTimerCPU.cpp - description
-------------------
begin : 2007/06/23
copyright : (C) 2007 by Tomas Oberhuber
......@@ -19,16 +19,16 @@
#ifdef HAVE_SYS_RESOURCE_H
#include <sys/resource.h>
#endif
#include "mTimerCPU.h"
#include "tnlTimerCPU.h"
mTimerCPU default_mcore_cpu_timer;
tnlTimerCPU default_mcore_cpu_timer;
mTimerCPU :: mTimerCPU()
tnlTimerCPU :: tnlTimerCPU()
{
Reset();
}
//--------------------------------------------------------------------------
void mTimerCPU :: Reset()
void tnlTimerCPU :: Reset()
{
#ifdef HAVE_SYS_RESOURCE_H
rusage init_usage;
......@@ -39,7 +39,7 @@ void mTimerCPU :: Reset()
#endif
}
//--------------------------------------------------------------------------
int mTimerCPU :: GetTime( int root, MPI_Comm comm ) const
int tnlTimerCPU :: GetTime( int root, MPI_Comm comm ) const
{
#ifdef HAVE_SYS_RESOURCE_H
rusage cur_usage;
......
/***************************************************************************
mTimerCPU.h - description
tnlTimerCPU.h - description
-------------------
begin : 2007/06/23
copyright : (C) 2007 by Tomas Oberhuber
......@@ -15,16 +15,16 @@
* *
***************************************************************************/
#ifndef mTimerCPUH
#define mTimerCPUH
#ifndef tnlTimerCPUH
#define tnlTimerCPUH
#include "mpi-supp.h"
class mTimerCPU
class tnlTimerCPU
{
public:
mTimerCPU();
tnlTimerCPU();
void Reset();
......@@ -35,6 +35,6 @@ class mTimerCPU
int initial_time;
};
extern mTimerCPU default_mcore_cpu_timer;
extern tnlTimerCPU default_mcore_cpu_timer;
#endif
/***************************************************************************
mTimerRT.cpp - description
tnlTimerRT.cpp - description
-------------------
begin : 2007/06/26
copyright : (C) 2007 by Tomas Oberhuber
......@@ -15,7 +15,7 @@
* *
***************************************************************************/
#include "mTimerRT.h"
#include "tnlTimerRT.h"
#include "config.h"
#ifdef HAVE_STDDEF_H
#ifdef HAVE_SYS_TIME_H
......@@ -25,14 +25,14 @@
#endif
#endif
mTimerRT default_mcore_rt_timer;
tnlTimerRT default_mcore_rt_timer;
//--------------------------------------------------------------------------
mTimerRT :: mTimerRT()
tnlTimerRT :: tnlTimerRT()
{
Reset();
}
//--------------------------------------------------------------------------
void mTimerRT :: Reset()
void tnlTimerRT :: Reset()
{
#ifdef HAVE_TIME
struct timeval tp;
......@@ -43,7 +43,7 @@ void mTimerRT :: Reset()
initial_time = 0.0;
}
//--------------------------------------------------------------------------
double mTimerRT :: GetTime() const
double tnlTimerRT :: GetTime() const
{
#ifdef HAVE_TIME
struct timeval tp;
......
/***************************************************************************
mTimerRT.h - description
tnlTimerRT.h - description
-------------------
begin : 2007/06/26
copyright : (C) 2007 by Tomas Oberhuber
......@@ -15,16 +15,16 @@
* *
***************************************************************************/
#ifndef mTimerRTH
#define mTimerRTH
#ifndef tnlTimerRTH
#define tnlTimerRTH
#include "mpi-supp.h"
class mTimerRT
class tnlTimerRT
{
public:
mTimerRT();
tnlTimerRT();
void Reset();
......@@ -35,5 +35,5 @@ class mTimerRT
double initial_time;
};
extern mTimerRT default_mcore_rt_timer;
extern tnlTimerRT default_mcore_rt_timer;
#endif
......@@ -19,8 +19,8 @@
#define mExplicitSolverH
#include <iomanip>
#include <core/mTimerCPU.h>
#include <core/mTimerRT.h>
#include <core/tnlTimerCPU.h>
#include <core/tnlTimerRT.h>
template< class GRID, class SCHEME, typename T = double > class mExplicitSolver : public tnlObject
{
......@@ -81,12 +81,12 @@ template< class GRID, class SCHEME, typename T = double > class mExplicitSolver
verbosity = v;
};
void SetTimerCPU( const mTimerCPU* timer )
void SetTimerCPU( const tnlTimerCPU* timer )
{
cpu_timer = timer;
};
void SetTimerRT( const mTimerRT* timer )
void SetTimerRT( const tnlTimerRT* timer )
{
rt_timer = timer;
};
......@@ -134,9 +134,9 @@ template< class GRID, class SCHEME, typename T = double > class mExplicitSolver
int verbosity;
const mTimerCPU* cpu_timer;
const tnlTimerCPU* cpu_timer;
const mTimerRT* rt_timer;
const tnlTimerRT* rt_timer;
};
#endif
......@@ -18,8 +18,8 @@
#ifndef mMatrixSolverH
#define mMatrixSolverH
#include <core/mTimerCPU.h>
#include <core/mTimerRT.h>
#include <core/tnlTimerCPU.h>
#include <core/tnlTimerRT.h>
#include <core/mpi-supp.h>
#include <matrix/mBaseMatrix.h>
#include <matrix/mPreconditioner.h>
......@@ -53,12 +53,12 @@ template< typename T > class mMatrixSolver
verbosity = verbose;
};
void SetTimerCPU( const mTimerCPU* timer )
void SetTimerCPU( const tnlTimerCPU* timer )
{
cpu_timer = timer;
};
void SetTimerRT( const mTimerRT* timer )
void SetTimerRT( const tnlTimerRT* timer )
{
rt_timer = timer;
};
......@@ -101,9 +101,9 @@ template< typename T > class mMatrixSolver
int verbosity;
const mTimerCPU* cpu_timer;
const tnlTimerCPU* cpu_timer;
const mTimerRT* rt_timer;
const tnlTimerRT* rt_timer;
};
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment