Skip to content

Commit 10f1903

Browse files
RyanDavies19sanguinariojoe
authored andcommitted
fix: Rename AllOutput -> WriteOutputs (To match MD-F)
1 parent b5f89c4 commit 10f1903

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

source/MoorDyn.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -287,5 +287,5 @@ AllOutput(double t, double dt)
287287
{
288288
if (!md_singleton)
289289
return;
290-
std::cout << "In version 2, AllOutput is automatically called by MoorDynStep" << std::endl;
290+
std::cout << "In version 2, AllOutput is automatically called by MoorDynInit and MoorDynStep" << std::endl;
291291
}

source/MoorDyn2.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -624,7 +624,7 @@ moordyn::MoorDyn::Init(const double* x, const double* xd, bool skip_ic)
624624
}
625625

626626
// write t=0 output
627-
return AllOutput(0.0, 0.0);
627+
return WriteOutputs(0.0, 0.0);
628628
}
629629

630630
moordyn::error_id DECLDIR
@@ -761,7 +761,7 @@ moordyn::MoorDyn::Step(const double* x,
761761
// specifying max tension things)
762762

763763
// ------------------------ write outputs --------------------------
764-
const moordyn::error_id err = AllOutput(t, dt);
764+
const moordyn::error_id err = WriteOutputs(t, dt);
765765
if (err != MOORDYN_SUCCESS)
766766
return err;
767767

@@ -2325,7 +2325,7 @@ moordyn::MoorDyn::detachLines(FailProps* failure)
23252325
}
23262326

23272327
moordyn::error_id
2328-
moordyn::MoorDyn::AllOutput(double t, double dt)
2328+
moordyn::MoorDyn::WriteOutputs(double t, double dt)
23292329
{
23302330
if (disableOutput)
23312331
return MOORDYN_SUCCESS;

source/MoorDyn2.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -847,7 +847,7 @@ class MoorDyn final : public io::IO
847847
* @return MOORDYN_SUCCESS if the output is correctly printed, an error
848848
* code otherwise
849849
*/
850-
moordyn::error_id AllOutput(double t, double dt);
850+
moordyn::error_id WriteOutputs(double t, double dt);
851851
};
852852

853853
} // ::moordyn

0 commit comments

Comments
 (0)