Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

done #660

Merged
merged 1 commit into from
Sep 18, 2024
Merged

done #660

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 11 additions & 2 deletions src/shared/io_system/io_base.h
Original file line number Diff line number Diff line change
Expand Up @@ -106,8 +106,7 @@ class BodyStatesRecording : public BaseIO
/** write with filename indicated by physical time */
void writeToFile();

template <class ExecutionPolicy>
void writeToFile(const ExecutionPolicy &ex_policy)
void writeToFile(const ParallelDevicePolicy &ex_policy)
{
for (size_t i = 0; i < bodies_.size(); ++i)
{
Expand All @@ -118,6 +117,16 @@ class BodyStatesRecording : public BaseIO
writeToFile();
};

void writeToFile(const ParallelPolicy &ex_policy)
{
writeToFile();
};

void writeToFile(const SequencedPolicy &ex_policy)
{
writeToFile();
};

virtual void writeToFile(size_t iteration_step) override;

template <typename DataType>
Expand Down
4 changes: 2 additions & 2 deletions tests/2d_examples/test_2d_airfoil/airfoil_2d.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -81,8 +81,8 @@ int main(int ac, char *av[])
//----------------------------------------------------------------------
// First output before the simulation.
//----------------------------------------------------------------------
airfoil_recording_to_vtp.writeToFile(0);
cell_linked_list_recording.writeToFile(0);
airfoil_recording_to_vtp.writeToFile();
cell_linked_list_recording.writeToFile();
//----------------------------------------------------------------------
// Particle relaxation time stepping start here.
//----------------------------------------------------------------------
Expand Down
Loading