Skip to content

Commit b5f89c4

Browse files
RyanDavies19sanguinariojoe
authored andcommitted
fix: Old AllOutput back to voids, cleans it up a bit
1 parent 24b9a91 commit b5f89c4

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

source/MoorDyn.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -282,10 +282,10 @@ GetNodePos(int LineNum, int NodeNum, double pos[3])
282282
return MoorDyn_GetLineNodePos(line, NodeNum, pos);
283283
}
284284

285-
int DECLDIR
285+
void DECLDIR
286286
AllOutput(double t, double dt)
287287
{
288288
if (!md_singleton)
289-
return MOORDYN_MEM_ERROR;
289+
return;
290290
std::cout << "In version 2, AllOutput is automatically called by MoorDynStep" << std::endl;
291291
}

source/MoorDyn.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ extern "C"
142142
int DECLDIR GetPointForce(int l, double force[3]);
143143
int DECLDIR GetNodePos(int LineNum, int NodeNum, double pos[3]);
144144

145-
int AllOutput(double, double);
145+
void AllOutput(double, double);
146146

147147
/**
148148
* @}

0 commit comments

Comments
 (0)