Skip to content

Commit

Permalink
Fix stencil include guard problem (clang17 / c++20)
Browse files Browse the repository at this point in the history
  • Loading branch information
hennigfr authored and Markus Holzer committed Apr 23, 2024
1 parent de15274 commit 7cca763
Show file tree
Hide file tree
Showing 14 changed files with 29 additions and 29 deletions.
4 changes: 2 additions & 2 deletions src/stencil/D2CornerStencil.h
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
#pragma once

//====================================================================================================================
// Caution: This file has been generated automatically. All manual changes are lost when file is regenerated!
// Changes should be done in Stencil.in.h,and then all stencils classes can be generated again.
//====================================================================================================================
#ifndef DOXY_SKIP_INTERNAL
#pragma once

#include "Directions.h"
#include "Iterator.h"

Expand Down
4 changes: 2 additions & 2 deletions src/stencil/D2Q4.h
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
#pragma once

//====================================================================================================================
// Caution: This file has been generated automatically. All manual changes are lost when file is regenerated!
// Changes should be done in Stencil.in.h,and then all stencils classes can be generated again.
//====================================================================================================================
#ifndef DOXY_SKIP_INTERNAL
#pragma once

#include "Directions.h"
#include "Iterator.h"

Expand Down
4 changes: 2 additions & 2 deletions src/stencil/D2Q5.h
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
#pragma once

//====================================================================================================================
// Caution: This file has been generated automatically. All manual changes are lost when file is regenerated!
// Changes should be done in Stencil.in.h,and then all stencils classes can be generated again.
//====================================================================================================================
#ifndef DOXY_SKIP_INTERNAL
#pragma once

#include "Directions.h"
#include "Iterator.h"

Expand Down
4 changes: 2 additions & 2 deletions src/stencil/D2Q9.h
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
#pragma once

//====================================================================================================================
// Caution: This file has been generated automatically. All manual changes are lost when file is regenerated!
// Changes should be done in Stencil.in.h,and then all stencils classes can be generated again.
//====================================================================================================================
#ifndef DOXY_SKIP_INTERNAL
#pragma once

#include "Directions.h"
#include "Iterator.h"

Expand Down
4 changes: 2 additions & 2 deletions src/stencil/D3CornerStencil.h
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
#pragma once

//====================================================================================================================
// Caution: This file has been generated automatically. All manual changes are lost when file is regenerated!
// Changes should be done in Stencil.in.h,and then all stencils classes can be generated again.
//====================================================================================================================
#ifndef DOXY_SKIP_INTERNAL
#pragma once

#include "Directions.h"
#include "Iterator.h"

Expand Down
4 changes: 2 additions & 2 deletions src/stencil/D3EdgeCornerStencil.h
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
#pragma once

//====================================================================================================================
// Caution: This file has been generated automatically. All manual changes are lost when file is regenerated!
// Changes should be done in Stencil.in.h,and then all stencils classes can be generated again.
//====================================================================================================================
#ifndef DOXY_SKIP_INTERNAL
#pragma once

#include "Directions.h"
#include "Iterator.h"

Expand Down
4 changes: 2 additions & 2 deletions src/stencil/D3Q15.h
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
#pragma once

//====================================================================================================================
// Caution: This file has been generated automatically. All manual changes are lost when file is regenerated!
// Changes should be done in Stencil.in.h,and then all stencils classes can be generated again.
//====================================================================================================================
#ifndef DOXY_SKIP_INTERNAL
#pragma once

#include "Directions.h"
#include "Iterator.h"

Expand Down
4 changes: 2 additions & 2 deletions src/stencil/D3Q19.h
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
#pragma once

//====================================================================================================================
// Caution: This file has been generated automatically. All manual changes are lost when file is regenerated!
// Changes should be done in Stencil.in.h,and then all stencils classes can be generated again.
//====================================================================================================================
#ifndef DOXY_SKIP_INTERNAL
#pragma once

#include "Directions.h"
#include "Iterator.h"

Expand Down
4 changes: 2 additions & 2 deletions src/stencil/D3Q27.h
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
#pragma once

//====================================================================================================================
// Caution: This file has been generated automatically. All manual changes are lost when file is regenerated!
// Changes should be done in Stencil.in.h,and then all stencils classes can be generated again.
//====================================================================================================================
#ifndef DOXY_SKIP_INTERNAL
#pragma once

#include "Directions.h"
#include "Iterator.h"

Expand Down
4 changes: 2 additions & 2 deletions src/stencil/D3Q6.h
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
#pragma once

//====================================================================================================================
// Caution: This file has been generated automatically. All manual changes are lost when file is regenerated!
// Changes should be done in Stencil.in.h,and then all stencils classes can be generated again.
//====================================================================================================================
#ifndef DOXY_SKIP_INTERNAL
#pragma once

#include "Directions.h"
#include "Iterator.h"

Expand Down
4 changes: 2 additions & 2 deletions src/stencil/D3Q7.h
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
#pragma once

//====================================================================================================================
// Caution: This file has been generated automatically. All manual changes are lost when file is regenerated!
// Changes should be done in Stencil.in.h,and then all stencils classes can be generated again.
//====================================================================================================================
#ifndef DOXY_SKIP_INTERNAL
#pragma once

#include "Directions.h"
#include "Iterator.h"

Expand Down
4 changes: 2 additions & 2 deletions src/stencil/EdgeStencil.h
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
#pragma once

//====================================================================================================================
// Caution: This file has been generated automatically. All manual changes are lost when file is regenerated!
// Changes should be done in Stencil.in.h,and then all stencils classes can be generated again.
//====================================================================================================================
#ifndef DOXY_SKIP_INTERNAL
#pragma once

#include "Directions.h"
#include "Iterator.h"

Expand Down
6 changes: 2 additions & 4 deletions src/stencil/Stencil.in.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
#pragma once

#include "Directions.h"
#include "Iterator.h"

Expand Down Expand Up @@ -83,7 +81,7 @@ namespace stencil {
/*! \name Iteration*/
//@{

typedef stencil::Iterator<$name> iterator;
using iterator = stencil::Iterator<$name>;

static iterator begin() { return iterator(0); }
static iterator beginNoCenter() { return iterator(noCenterFirstIdx); }
Expand Down Expand Up @@ -182,7 +180,7 @@ namespace stencil {

} // namespace internal

typedef internal::$name<> $name;
using $name = internal::$name<>;

} // namespace stencil
} // namespace walberla
Expand Down
4 changes: 3 additions & 1 deletion src/stencil/generate.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,9 @@ def coordinateToDirection(coord):
return directionStr


header = """//====================================================================================================================
header = """#pragma once
//====================================================================================================================
// Caution: This file has been generated automatically. All manual changes are lost when file is regenerated!
// Changes should be done in Stencil.in.h,and then all stencils classes can be generated again.
//====================================================================================================================
Expand Down

0 comments on commit 7cca763

Please sign in to comment.