You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: glue-codes/openfast-cpp/src/OpenFAST.H
+4-3
Original file line number
Diff line number
Diff line change
@@ -9,6 +9,7 @@
9
9
#include<unordered_map>
10
10
#include<set>
11
11
#include<map>
12
+
#include<memory>
12
13
#include"netcdf.h"
13
14
#include"dlfcn.h"
14
15
//TODO: The skip MPICXX is put in place primarily to get around errors in OpenFOAM. This will cause problems if the driver program uses C++ API for MPI.
@@ -357,7 +358,7 @@ class OpenFAST {
357
358
create_sc_t * create_SuperController;
358
359
typedefvoiddestroy_sc_t(SuperController *);
359
360
destroy_sc_t * destroy_SuperController;
360
-
SuperController * sc;
361
+
std::unique_ptr<SuperController> sc;
361
362
362
363
// MPI related book keeping for all processors containing turbines
363
364
//! Number of processors in a fastMPIGroup
@@ -486,8 +487,8 @@ class OpenFAST {
486
487
voidgetBladeRloc(double * bldRloc, int iTurbGlob);
487
488
//! Get the blade reference positions array 'bldRefPos' of turbine number 'iTurbGlob'
488
489
voidgetBladeRefPositions(double* bldRefPos, int iTurbGlob, int nSize=6);
489
-
//! Get the blade root reference positions array 'bldRootRefPos' of turbine number 'iTurbGlob'
490
-
voidgetBladeRootRefPositions(double* bldRootRefPos, int iTurbGlob, int nSize=6);
490
+
//! Get the blade root reference positions array 'bldRootRefPos' of turbine number 'iTurbGlob'
491
+
voidgetBladeRootRefPositions(double* bldRootRefPos, int iTurbGlob, int nSize=6);
491
492
//! Get the blade deflections array 'bldDefl' of turbine number 'iTurbGlob' at time step 't'
492
493
voidgetBladeDisplacements(double* bldDefl, double* bldVel, int iTurbGlob, fast::timeStep t = fast::STATE_NP1, int nSize=6);
493
494
//! Get the blade root deflections array 'bldRootDefl' of turbine number 'iTurbGlob' at time step 't'
0 commit comments