620 MPI_Helpers::init(argc,argv);
627 unsigned Nx1=50, Nx2=50;
632 std::ostringstream trace_filename;
633 trace_filename <<
"trace" <<
problem.communicator_pt()->my_rank()
635 ofstream trace(trace_filename.str().c_str());
646 unsigned n_element =
problem.mesh_pt()->nelement();
648 for(
unsigned e=0;
e<n_element/2;
e++) {element_partition[
e]=0;}
649 for(
unsigned e=n_element/2;
e<n_element;
e++) {element_partition[
e]=1;}
654 problem.distribute(element_partition);
660 for(
unsigned i=0;
i<6;
i++)
712 unsigned n_dof_local =
problem.dof_distribution_pt()->nrow_local();
714 for(
unsigned n=0;
n<n_dof_local;
n++)
720 unsigned n_node=
problem.mesh_pt()->nnode();
721 for(
unsigned n=0;
n<n_node;
n++)
724 double x = nod_pt->
x(0);
739 for(
unsigned n=0;
n<n_dof_local;
n++)
751 std::cout <<
"Pitchfork detected at " <<
Re << std::endl;
752 if(
problem.communicator_pt()->my_rank()==0)
754 std::cout <<
"The slack parameter is "
755 <<
problem.dof(2*n_dof_local+1) << std::endl;
769 MPI_Helpers::finalize();
int i
Definition: BiCGSTAB_step_by_step.cpp:9
const unsigned n
Definition: CG3DPackingUnitTest.cpp:11
Array< double, 1, 3 > e(1./3., 0.5, 2.)
Definition: bifurcation_tracking/pitchfork.cc:467
double interpolated_f(const Vector< double > &s, const unsigned &i)
FE interpolated values of the arguments.
Definition: bifurcation_tracking/pitchfork.cc:433
void set_value(const unsigned &i, const double &value_)
Definition: nodes.h:271
bool is_pinned(const unsigned &i) const
Test whether the i-th variable is pinned (1: true; 0: false).
Definition: nodes.h:417
Definition: double_vector.h:58
double & x(const unsigned &i)
Return the i-th nodal coordinate.
Definition: nodes.h:1060
RealScalar s
Definition: level1_cplx_impl.h:130
Global variables.
Definition: TwenteMeshGluing.cpp:60
double Re
Reynolds number.
Definition: fibre.cc:55
list x
Definition: plotDoE.py:28
void symm(int size=Size, int othersize=OtherSize)
Definition: product_symm.cpp:13
Constructor for SteadyAxisymAdvectionDiffusion problem
Definition: steady_axisym_advection_diffusion.cc:213