Skip to content

Commit

Permalink
Add if-def
Browse files Browse the repository at this point in the history
  • Loading branch information
garth-wells committed Feb 3, 2025
1 parent 9d5ee49 commit 3116238
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions python/dolfinx/wrappers/io.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,7 @@ void vtk_scalar_fn(auto&& m)
nb::arg("u"), nb::arg("t") = 0.0);
}

#ifdef HAS_ADIOS2
template <typename T>
void declare_vtx_writer(nb::module_& m, std::string type)
{
Expand Down Expand Up @@ -148,6 +149,7 @@ void declare_vtx_writer(nb::module_& m, std::string type)
{ self.write(t); }, nb::arg("t"));
}
}
#endif

template <typename T>
void declare_data_types(nb::module_& m)
Expand Down

0 comments on commit 3116238

Please sign in to comment.