Skip to content

Commit 24b9a91

Browse files
RyanDavies19sanguinariojoe
authored andcommitted
fix: added dummy AllOutput to old API
1 parent 464112e commit 24b9a91

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

source/MoorDyn.cpp

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -281,3 +281,11 @@ GetNodePos(int LineNum, int NodeNum, double pos[3])
281281
auto line = MoorDyn_GetLine(md_singleton, LineNum);
282282
return MoorDyn_GetLineNodePos(line, NodeNum, pos);
283283
}
284+
285+
int DECLDIR
286+
AllOutput(double t, double dt)
287+
{
288+
if (!md_singleton)
289+
return MOORDYN_MEM_ERROR;
290+
std::cout << "In version 2, AllOutput is automatically called by MoorDynStep" << std::endl;
291+
}

0 commit comments

Comments
 (0)