mpi/distribution/bifurcation_tracking/track_pitch.cc File Reference
#include <iostream>
#include <fstream>
#include <cstdio>
#include "generic.h"
#include "axisym_navier_stokes.h"
#include "meshes/rectangular_quadmesh.h"

Classes

class  CylinderMesh< ELEMENT >
 
class  RotatingProblem< ELEMENT >
 

Functions

int main (int argc, char *argv[])
 

Function Documentation

◆ main()

int main ( int argc  ,
char argv[] 
)
780 {
781 #ifdef OOMPH_HAS_MPI
782  MPI_Helpers::init(argc,argv);
783 #endif
784 
785 
786  //Construct the problem, you can use either element types
788 
789  //Set up a dummy partition
790 
791 #ifdef OOMPH_HAS_MPI
792  //Set up a dummy partition
793  unsigned n_element = problem.mesh_pt()->nelement();
794  Vector<unsigned> element_partition(n_element);
795  for(unsigned e=0;e<n_element/2;e++) {element_partition[e]=0;}
796  for(unsigned e=n_element/2;e<n_element;e++) {element_partition[e]=1;}
797 
798  //DocInfo mesh_doc_info;
799  //bool report_stats=true;
800  //mesh_doc_info.set_directory("RESLT_MESH");
801  problem.distribute(element_partition);//,mesh_doc_info,report_stats);
802  //problem.check_halo_schemes(mesh_doc_info);
803  //problem.distribute();
804 #endif
805 
806 
807  //Solve the problem :)
808  problem.solve_system();
809 
810 
811 #ifdef OOMPH_HAS_MPI
812  MPI_Helpers::finalize();
813 #endif
814 }
Array< double, 1, 3 > e(1./3., 0.5, 2.)
Definition: rotating_ends.cc:170
Constructor for SteadyAxisymAdvectionDiffusion problem
Definition: steady_axisym_advection_diffusion.cc:213

References e(), and problem.