.. _program_listing_file_src_pcms_field_layout_empty.h: Program Listing for File empty.h ================================ |exhale_lsh| :ref:`Return to documentation for file ` (``src/pcms/field/layout/empty.h``) .. |exhale_lsh| unicode:: U+021B0 .. UPWARDS ARROW WITH TIP LEFTWARDS .. code-block:: cpp #ifndef PCMS_EMPTY_FIELD_LAYOUT_H #define PCMS_EMPTY_FIELD_LAYOUT_H #include "pcms/discretization/discretization/empty.hpp" #include "pcms/field/field_layout.h" #include namespace pcms { class EmptyFieldLayout : public FieldLayout { public: explicit EmptyFieldLayout(std::shared_ptr system, int num_components = 1); std::shared_ptr GetDiscretization() const noexcept override; int GetNumComponents() const override; LO GetNumOwnedDofHolder() const override; GO GetNumGlobalDofHolder() const override; Rank1View GetOwnedHost() const override; GlobalIDView GetGidsHost() const override; bool IsDistributed() const override; EntOffsetsArray GetEntOffsets() const override; CoordinateView GetDOFHolderCoordinates() const override; int GetDimension() const override; Rank1View GetDOFHolderClassificationDimensionsHost() const override; Rank1View GetDOFHolderClassificationIdsHost() const override; private: Kokkos::View owned_; Kokkos::View gids_; Kokkos::View class_dims_; Kokkos::View class_ids_; Kokkos::View owned_host_; Kokkos::View gids_host_; Kokkos::View classification_dims_host_; Kokkos::View classification_ids_host_; Kokkos::View coords_; std::shared_ptr discretization_; int num_components_; }; } // namespace pcms #endif // PCMS_EMPTY_FIELD_LAYOUT_H