]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Try to fix docker images. 11618/head
authorLuca Heltai <luca.heltai@sissa.it>
Mon, 25 Jan 2021 11:39:28 +0000 (12:39 +0100)
committerLuca Heltai <luca.heltai@sissa.it>
Mon, 25 Jan 2021 11:39:28 +0000 (12:39 +0100)
.github/workflows/docker.yml
contrib/python-bindings/include/reference_cell_wrapper.h
contrib/python-bindings/source/reference_cell_wrapper.cc

index 2b493df895daae59bbdc47e9a1843b7151439057..1ef1706de7cbc7d8e28715e0e00f7a2baf543037 100644 (file)
@@ -12,7 +12,7 @@ jobs:
         uses: actions/checkout@v2
 
       - name: Build and push Docker image of master 
-        uses: docker/build-push-action@v1
+        uses: docker/build-push-action@v2
         with:
           username: ${{ secrets.DOCKER_USERNAME }}
           password: ${{ secrets.DOCKER_PASSWORD }}
index 1a8b755f5848c5fb15d9c62d5939729aa0684529..4ff8cb3e6a54771621c2f69104956b9ec4fb099d 100644 (file)
@@ -35,12 +35,12 @@ namespace python
     CellTypeWrapper(const CellTypeWrapper &other);
 
     /**
-     * Constructor. Takes a CellKinds enum field and creates a Type class.
+     * Constructor. Takes a cell kind id field and creates a Type class.
      */
-    CellTypeWrapper(const ReferenceCell::Type::CellKinds &kind);
+    CellTypeWrapper(const std::uint8_t &kind);
 
     /**
-     * Constructor. Takes a CellKinds enum field and creates a Type class.
+     * Constructor. Takes a ReferenceCell::Type object and creates a Type class.
      */
     CellTypeWrapper(const ReferenceCell::Type &cell_type_in);
 
@@ -54,7 +54,7 @@ namespace python
      */
     ~CellTypeWrapper();
 
-    ReferenceCell::Type::CellKinds
+    std::uint8_t
     cell_kind() const;
 
   private:
index b87e29ddc5d27e3e2998242867846f56a49bfe8d..a1f9ffafac5e04a08309e18d12c761b59327e69d 100644 (file)
@@ -33,7 +33,7 @@ namespace python
 
 
 
-  CellTypeWrapper::CellTypeWrapper(const ReferenceCell::Type::CellKinds &kind)
+  CellTypeWrapper::CellTypeWrapper(const std::uint8_t &kind)
   {
     cell_type = kind;
   }
@@ -52,11 +52,10 @@ namespace python
 
 
 
-  ReferenceCell::Type::CellKinds
+  std::uint8_t
   CellTypeWrapper::cell_kind() const
   {
-    std::uint8_t kind = (std::uint8_t)cell_type;
-    return static_cast<ReferenceCell::Type::CellKinds>(kind);
+    return cell_type;
   }
 
 } // namespace python

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.