Use raw pointer
This commit is contained in:
parent
2d858c43e3
commit
7829895b3b
@ -22,8 +22,6 @@
|
||||
|
||||
#include "Compsegs.hpp"
|
||||
|
||||
#include <memory>
|
||||
|
||||
namespace Opm {
|
||||
WellConnections * newConnectionsWithSegments(const DeckKeyword& compsegs,
|
||||
const WellConnections& input_connections,
|
||||
@ -32,10 +30,10 @@ namespace Opm {
|
||||
const ParseContext& parseContext,
|
||||
ErrorGuard& errors)
|
||||
{
|
||||
std::unique_ptr<WellConnections> new_connection_set(new WellConnections(input_connections));
|
||||
WellConnections * new_connection_set = new WellConnections(input_connections);
|
||||
std::vector<Compsegs> compsegs_vector = Compsegs::compsegsFromCOMPSEGSKeyword( compsegs, grid, parseContext, errors);
|
||||
Compsegs::processCOMPSEGS(compsegs_vector, segment_set);
|
||||
Compsegs::updateConnectionsWithSegment(compsegs_vector, grid, *new_connection_set);
|
||||
return new_connection_set.release();
|
||||
return new_connection_set;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user