source: src/commands/com_check_consistency.cpp@ 48b662

Last change on this file since 48b662 was 48b662, checked in by Olaf Lenz <olenz@…>, 14 years ago

Moved files in scafacos_fcs one level up.

git-svn-id: https://svn.version.fz-juelich.de/scafacos/trunk@847 5161e1c8-67bf-11de-9fd5-51895aff932f

  • Property mode set to 100644
File size: 802 bytes
Line 
1/**
2 * @file com_check_consistency.cpp
3 * @author Julian Iseringhausen <isering@ins.uni-bonn.de>
4 * @date Mon Apr 18 12:28:58 2011
5 *
6 * @brief Checks a given grid for nan and inf.
7 *
8 */
9
10
11#ifdef HAVE_CONFIG_H
12#include <config.h>
13#endif
14
15#include <cstdio>
16
17#include "base/command.hpp"
18#include "grid/grid.hpp"
19#include "grid/multigrid.hpp"
20
21using namespace VMG;
22
23class VMGCommandCheckConsistency : public Command
24{
25public:
26 Request Run(Command::argument_vector arguments)
27 {
28 Multigrid* grid = MG::GetFactory().GetObject(arguments[0])->Cast<Multigrid>();
29
30 if (!(*grid)().IsConsistent())
31 return StopCycleNow;
32
33 return Continue;
34 }
35
36 static const char* Name() {return "CheckConsistency";}
37 static int Arguments() {return 1;}
38};
39
40CREATE_INITIALIZER(VMGCommandCheckConsistency);
Note: See TracBrowser for help on using the repository browser.