#include "grins_config.h"
#include <iostream>
#include "grins/simulation.h"
#include "grins/simulation_builder.h"
#include "grins/multiphysics_sys.h"
#include "libmesh/exact_solution.h"
 
Go to the source code of this file.
 | 
| int  | main (int argc, char *argv[]) | 
|   | 
      
        
          | int main  | 
          ( | 
          int  | 
          argc,  | 
        
        
           | 
           | 
          char *  | 
          argv[]  | 
        
        
           | 
          ) | 
           |  | 
        
      
 
Definition at line 43 of file vorticity_qoi.C.
References GRINS::Simulation::run().
   46 #ifdef GRINS_USE_GRVY_TIMERS 
   47   GRVY::GRVY_Timer_Class grvy_timer;
 
   48   grvy_timer.Init(
"GRINS Timer");
 
   55       std::cerr << 
"Error: Must specify libMesh input file." << std::endl;
 
   60   std::string libMesh_input_filename = argv[1];
 
   63   GetPot libMesh_inputfile( libMesh_input_filename );
 
   65 #ifdef GRINS_USE_GRVY_TIMERS 
   66   grvy_timer.BeginTimer(
"Initialize Solver");
 
   70   libMesh::LibMeshInit libmesh_init(argc, argv);
 
   76                            libmesh_init.comm() );
 
   78 #ifdef GRINS_USE_GRVY_TIMERS 
   79   grvy_timer.EndTimer(
"Initialize Solver");
 
   82   grins.attach_grvy_timer( &grvy_timer );
 
   88   libMesh::Number qoi = grins.get_qoi_value( 0 );
 
   91   const libMesh::Number exact_value = -0.5;
 
   92   const libMesh::Number rel_error = std::fabs( (qoi - exact_value )/exact_value );
 
   93   const libMesh::Number tol = 1.0e-11;
 
   96       std::cerr << 
"Computed voriticity QoI mismatch greater than tolerance." << std::endl
 
   97                 << 
"Computed value = " << qoi << std::endl
 
   98                 << 
"Exact value = " << exact_value << std::endl
 
   99                 << 
"Relative error = " << rel_error << std::endl
 
  100                 << 
"Tolerance = " << tol << std::endl;