Skip to content
Snippets Groups Projects
Commit 40345a79 authored by Sebastian Eibl's avatar Sebastian Eibl
Browse files

[CLANG-TIDY] modernize-make-shared

parent 6ac02033
Branches
Tags
No related merge requests found
......@@ -41,6 +41,8 @@
#include "stencil/D3Q19.h"
#include "stencil/D3Q27.h"
#include <memory>
#include <sstream>
#ifdef _MSC_VER
......@@ -235,9 +237,9 @@ shared_ptr<StructuredBlockForest> createStructuredBlockForest( Vector3<uint_t> b
MPIManager::instance()->useWorldComm();
// create StructuredBlockForest (encapsulates a newly created BlockForest)
auto bf = shared_ptr< BlockForest >( new BlockForest( uint_c( MPIManager::instance()->rank() ), sforest, keepGlobalBlockInformation ) );
auto bf = std::make_shared< BlockForest >( uint_c( MPIManager::instance()->rank() ), sforest, keepGlobalBlockInformation );
auto sbf = shared_ptr< StructuredBlockForest >( new StructuredBlockForest( bf, cellsPerBlock[0], cellsPerBlock[1], cellsPerBlock[2] ) );
auto sbf = std::make_shared< StructuredBlockForest >( bf, cellsPerBlock[0], cellsPerBlock[1], cellsPerBlock[2] );
sbf->createCellBoundingBoxes();
return sbf;
......
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