Skip to content

Commit

Permalink
Add C++ API test with restart for extloads
Browse files Browse the repository at this point in the history
  • Loading branch information
Ganesh Vijayakumar committed Aug 8, 2024
1 parent 7ddf4c2 commit 33a02f1
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 2 deletions.
2 changes: 1 addition & 1 deletion reg_tests/CTestList.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -319,7 +319,7 @@ of_regression("Tailfin_FreeYaw1DOF_Unsteady" "openfast;elastodyn;aerod
of_aeromap_regression("5MW_Land_AeroMap" "aeromap;elastodyn;aerodyn15")

# OpenFAST C++ API test
if(BUILD_OPENFAST_CPP_API)
if(BUILD_OPENFAST_CPP_DRIVER)
of_cpp_interface_regression("5MW_Land_DLL_WTurb_cpp" "openfast;fastlib;cpp")
of_cpp_interface_regression("5MW_Restart" "openfast;fastlib;cpp;restart")
endif()
Expand Down
13 changes: 12 additions & 1 deletion reg_tests/executeOpenfastCppRegressionCase.py
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,18 @@
if returnCode != 0:
sys.exit(returnCode*10)
os.chdir(cwd)



### If this is a restart test case
if caseName.endswith('_Restart'):
for caseInputFile in reversed(glob.glob(os.path.join(testBuildDirectory, '*chkp'))):
if not caseInputFile.endswith('dll.chkp'):
break
caseInputFile = os.path.abspath("cDriverRestart.yaml")
returnCode = openfastDrivers.runOpenfastCase(caseInputFile, executable, restart=True)
if returnCode != 0:
sys.exit(returnCode*10)

### Build the filesystem navigation variables for running the regression test
localOutFile = os.path.join(testBuildDirectory, caseName + ".outb")
baselineOutFile = os.path.join(targetOutputDirectory, caseName.replace('_cpp', '') + ".outb")
Expand Down

0 comments on commit 33a02f1

Please sign in to comment.