Skip to content

Commit

Permalink
fixes from Dune update
Browse files Browse the repository at this point in the history
  • Loading branch information
rath3t committed Oct 26, 2023
1 parent b2cee61 commit 29a9720
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion dune/iga/nurbsgrid.hh
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ namespace Dune::IGA {
const GridView& leafGridView() const { return *leafGridView_; }
const GridView& levelGridView([[maybe_unused]] int level) const { return *leafGridView_; }
int getMark(const ElementEntity& element) const { return 0; }
bool mark(int refCount, const ElementEntity& element) { return false; }
bool mark(int refCount, const ElementEntity& element) const { return false; }

template <typename Seed>
typename Codim<Seed::codimension>::Entity entity(const Seed& seed) const {
Expand Down
2 changes: 1 addition & 1 deletion dune/iga/nurbsleafgridview.hh
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ namespace Dune::IGA {
/** \brief Collect several types associated to OneDGrid LeafGridViews */
template <class GridImp>
struct NurbsLeafGridViewTraits {
using Grid = GridImp;
using Grid = std::remove_const_t<GridImp>;
using IndexSet = typename GridImp::Traits::LeafIndexSet;
using GridViewImp = NURBSLeafGridView<const GridImp>;

Expand Down
2 changes: 2 additions & 0 deletions dune/iga/nurbspatch.hh
Original file line number Diff line number Diff line change
Expand Up @@ -515,6 +515,8 @@ namespace Dune::IGA {
default: // edges 0,4,6
break;
}
default: // dim==1
break;
}
if (returnOriginal) return dIndex;
return getRealIndex<1>(dIndex);
Expand Down
4 changes: 2 additions & 2 deletions dune/iga/test/trimmedGridTests.cc
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,7 @@ auto testDataCollectorAndVtkWriter() {

for (auto s : std::views::iota(0, 4)) {
Dune::Vtk::DiscontinuousIgaDataCollector dataCollector1(gv, s);
Dune::VtkUnstructuredGridWriter writer2(dataCollector1, Vtk::FormatTypes::ASCII);
Dune::Vtk::UnstructuredGridWriter writer2(dataCollector1, Vtk::FormatTypes::ASCII);

writer2.addPointData(lambaGV, Dune::VTK::FieldInfo("displacement", Dune::VTK::FieldInfo::Type::vector, 2));
auto vtkFileName = OUTPUT_FOLDER + "/" + fileName + "_r" + std::to_string(r) + "_s" + std::to_string(s);
Expand Down Expand Up @@ -284,7 +284,7 @@ auto testExampleSuite() {
const auto gv = grid->leafGridView();
Dune::Vtk::DiscontinuousIgaDataCollector dataCollector1(gv);

Dune::VtkUnstructuredGridWriter writer2(dataCollector1, Vtk::FormatTypes::ASCII);
Dune::Vtk::UnstructuredGridWriter writer2(dataCollector1, Vtk::FormatTypes::ASCII);
writer2.write("TestFileTest");
testLoop(grid, 2, "surface-multihole");

Expand Down

0 comments on commit 29a9720

Please sign in to comment.