Skip to content

Commit

Permalink
PrintNumElems -> NumElems (refs-#2094)
Browse files Browse the repository at this point in the history
r20455
  • Loading branch information
aeslaughter authored and permcody committed Feb 14, 2014
1 parent 5f1a0ea commit 5d9a711
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 14 deletions.
Expand Up @@ -12,21 +12,21 @@
/* See COPYRIGHT for full restrictions */
/****************************************************************/

#ifndef PRINTELEMS_H
#define PRINTELEMS_H
#ifndef NUMELEMS_H
#define NUMELEMS_H

#include "GeneralPostprocessor.h"

//Forward Declarations
class PrintNumElems;
class NumElems;

template<>
InputParameters validParams<PrintNumElems>();
InputParameters validParams<NumElems>();

class PrintNumElems : public GeneralPostprocessor
class NumElems : public GeneralPostprocessor
{
public:
PrintNumElems(const std::string & name, InputParameters parameters);
NumElems(const std::string & name, InputParameters parameters);

virtual void initialize() {}

Expand All @@ -38,4 +38,4 @@ class PrintNumElems : public GeneralPostprocessor
virtual Real getValue();
};

#endif //PRINTELEMS_H
#endif // NUMELEMS_H
4 changes: 2 additions & 2 deletions framework/src/base/Moose.C
Expand Up @@ -135,7 +135,7 @@
#include "PrintDT.h"
#include "PrintRunTime.h"
#include "PrintPerfData.h"
#include "PrintNumElems.h"
#include "NumElems.h"
#include "PrintNumNodes.h"
#include "PrintNumNonlinearIters.h"
#include "PrintNumLinearIters.h"
Expand Down Expand Up @@ -425,7 +425,7 @@ registerObjects(Factory & factory)
registerPostprocessor(PrintDT);
registerPostprocessor(PrintRunTime);
registerPostprocessor(PrintPerfData);
registerPostprocessor(PrintNumElems);
registerPostprocessor(NumElems);
registerPostprocessor(PrintNumNodes);
registerPostprocessor(PrintNumNonlinearIters);
registerPostprocessor(PrintNumLinearIters);
Expand Down
Expand Up @@ -12,22 +12,22 @@
/* See COPYRIGHT for full restrictions */
/****************************************************************/

#include "PrintNumElems.h"
#include "NumElems.h"
#include "SubProblem.h"

template<>
InputParameters validParams<PrintNumElems>()
InputParameters validParams<NumElems>()
{
InputParameters params = validParams<GeneralPostprocessor>();
return params;
}

PrintNumElems::PrintNumElems(const std::string & name, InputParameters parameters) :
NumElems::NumElems(const std::string & name, InputParameters parameters) :
GeneralPostprocessor(name, parameters)
{}

Real
PrintNumElems::getValue()
NumElems::getValue()
{
return _subproblem.mesh().nElem();
}
Expand Up @@ -59,7 +59,7 @@
[../]

[./elements]
type = PrintNumElems
type = NumElems
variable = u
[../]

Expand Down

0 comments on commit 5d9a711

Please sign in to comment.