locate_zeta_tester_triangle.cc File Reference
#include <fenv.h>
#include "generic.h"
#include "poisson.h"
#include "meshes/triangle_mesh.h"
#include "locate_zeta_tester.h"

Classes

class  UnstructuredPoissonProblem< ELEMENT >
 Class definition. More...
 

Namespaces

 TanhSolnForPoisson
 Namespace for exact solution for Poisson equation with "sharp step".
 

Functions

void TanhSolnForPoisson::get_exact_u (const Vector< double > &x, Vector< double > &u)
 Exact solution as a Vector. More...
 
void TanhSolnForPoisson::get_source (const Vector< double > &x, double &source)
 Source function to make it an exact solution. More...
 
void TanhSolnForPoisson::zero (const Vector< double > &x, Vector< double > &u)
 
int main (int argc, char **argv)
 Driver code for demo of inline triangle mesh generation. More...
 

Function Documentation

◆ main()

int main ( int argc  ,
char **  argv 
)

Driver code for demo of inline triangle mesh generation.

667 {
668  // Store command line arguments
669  CommandLineArgs::setup(argc,argv);
670 
671  // Define possible command line arguments and parse the ones that
672  // were actually specified
673 
674  // Parse command line
676 
677  // Doc what has actually been specified on the command line
679 
680  // Create problem
682  problem;
683 
684 
685  // Doc the initial mesh
686  //=====================
687  std::stringstream comment_stream;
688  comment_stream << "Initial mesh ";
689  problem.doc_solution(comment_stream.str());
690 
691 
692  // Solve with spatial adaptation
693  //==============================
694  unsigned max_adapt=3;
695  problem.newton_solve(max_adapt);
696 
697  // Doc the solution
698  //=================
699  problem.doc_solution();
700 
701  // Check it out!
702  check_locate_zeta(problem.mesh_pt());
703 
704 
705 
706 } //End of main
Class definition.
Definition: mesh_from_inline_triangle.cc:91
void check_locate_zeta(Mesh *mesh_pt)
Definition: locate_zeta_tester.h:28
void setup(Time *time_pt)
Create all GeomObjects needed to define the cylinder and the flag.
Definition: turek_flag_non_fsi.cc:277
void parse_and_assign(int argc, char *argv[], const bool &throw_on_unrecognised_args)
Definition: oomph_utilities.cc:760
void doc_specified_flags()
Document specified command line flags.
Definition: oomph_utilities.cc:610
Constructor for SteadyAxisymAdvectionDiffusion problem
Definition: steady_axisym_advection_diffusion.cc:213

References check_locate_zeta(), oomph::CommandLineArgs::doc_specified_flags(), oomph::CommandLineArgs::parse_and_assign(), problem, and Flag_definition::setup().