Commit 0e47acb0 authored by GILLES Sebastien's avatar GILLES Sebastien

#356 Update XCode template as well.

parent 1e7eab24
......@@ -24,23 +24,22 @@ int main(int argc, char ** argv)
{
Wrappers::Mpi::InitEnvironment(argc, argv);
Wrappers::Mpi::shared_ptr mpi_world_ptr =
std::make_shared<Wrappers::Mpi>(0, Wrappers::MpiNS::Comm::World); // must be called before Petsc RAII
std::make_shared<Wrappers::Mpi>(0, Wrappers::MpiNS::Comm::World); // must be called before Petsc RAII
std::string input_parameter_file =
Utilities::CommandLineOptions::InputParameterFileFromCommandLine(argc, argv, __FILE__, __LINE__);
Utilities::CommandLineOptions::InputParameterFileFromCommandLine(argc, argv, __FILE__, __LINE__);
Wrappers::Petsc::Petsc raii_over_petsc(__FILE__, __LINE__);
___VARIABLE_problemName:identifier___::InputParameterList
input_parameter_data(input_parameter_file, mpi_world_ptr);
auto time_keep_stream = InitTimeKeepLog(*mpi_world_ptr, input_parameter_data);
// this line is required if TimeKeep facility is used.
InitTimeKeepLog(*mpi_world_ptr, input_parameter_data);
___VARIABLE_problemName:identifier___::Model model(mpi_world_ptr, input_parameter_data);
model.Run(input_parameter_data);
input_parameter_data.PrintUnused(std::cout);
input_parameter_data.PrintUnused(std::cout);
}
catch(const std::exception& e)
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment