mirror of
https://github.com/OPM/ResInsight.git
synced 2026-10-25 22:50:25 -05:00
Refactor: Centralized generation of path to storage of wellpaths from SSIHUB
This commit is contained in:
1 parent
0f9b667c55
commit
298b40d6ef
3 files changed
+7
-5
No files matched your search
@@ -21,9 +21,12 @@
|
||||
|
||||
#include "RiaApplication.h"
|
||||
#include "RiaPreferences.h"
|
||||
|
||||
#include "RimFileWellPath.h"
|
||||
#include "RimProject.h"
|
||||
#include "RimTools.h"
|
||||
#include "RimWellPathImport.h"
|
||||
|
||||
#include "RiuMainWindow.h"
|
||||
#include "RiuWellImportWizard.h"
|
||||
|
||||
@@ -82,8 +85,7 @@ void RicWellPathsImportSsihubFeature::onActionTriggered( bool isChecked )
|
||||
// Update the UTM bounding box from the reservoir
|
||||
app->project()->computeUtmAreaOfInterest();
|
||||
|
||||
QString wellPathsFolderPath = RimTools::getCacheRootDirectoryPathFromProject();
|
||||
wellPathsFolderPath += "_wellpaths";
|
||||
QString wellPathsFolderPath = RimFileWellPath::getCacheDirectoryPath();
|
||||
QDir::root().mkpath( wellPathsFolderPath );
|
||||
|
||||
if ( !app->project()->wellPathImport() ) return;
|
||||
|
||||
@@ -18,6 +18,7 @@
|
||||
|
||||
#include "RimWellPathImport.h"
|
||||
|
||||
#include "RimFileWellPath.h"
|
||||
#include "RimOilFieldEntry.h"
|
||||
#include "RimOilRegionEntry.h"
|
||||
#include "RimTools.h"
|
||||
@@ -224,8 +225,7 @@ RimWellPathImport::~RimWellPathImport()
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
void RimWellPathImport::updateFilePaths()
|
||||
{
|
||||
QString wellPathsFolderPath = RimTools::getCacheRootDirectoryPathFromProject();
|
||||
wellPathsFolderPath += "_wellpaths";
|
||||
QString wellPathsFolderPath = RimFileWellPath::getCacheDirectoryPath();
|
||||
|
||||
for ( size_t regionIdx = 0; regionIdx < this->regions.size(); regionIdx++ )
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user