Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ jobs:

# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
uses: github/codeql-action/init@f443b600d91635bebf5b0d9ebc620189c0d6fba5 # v3.29.5
uses: github/codeql-action/init@16140ae1a102900babc80a33c44059580f687047 # v3.29.5

with:
languages: ${{ matrix.language }}
Expand All @@ -61,7 +61,7 @@ jobs:
# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
# If this step fails, then you should remove it and run the build manually (see below)
- name: Autobuild
uses: github/codeql-action/autobuild@f443b600d91635bebf5b0d9ebc620189c0d6fba5 # v3.29.5
uses: github/codeql-action/autobuild@16140ae1a102900babc80a33c44059580f687047 # v3.29.5


# ℹ️ Command-line programs to run using the OS shell.
Expand All @@ -75,7 +75,7 @@ jobs:
# ./location_of_script_within_repo/buildscript.sh

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@f443b600d91635bebf5b0d9ebc620189c0d6fba5 # v3.29.5
uses: github/codeql-action/analyze@16140ae1a102900babc80a33c44059580f687047 # v3.29.5

with:
category: "/language:${{matrix.language}}"
2 changes: 1 addition & 1 deletion .github/workflows/scorecards.yml
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ jobs:

# Upload the results to GitHub's code scanning dashboard.
- name: "Upload to code-scanning"
uses: github/codeql-action/upload-sarif@f443b600d91635bebf5b0d9ebc620189c0d6fba5 # v3.29.5
uses: github/codeql-action/upload-sarif@16140ae1a102900babc80a33c44059580f687047 # v3.29.5

with:
sarif_file: results.sarif
58 changes: 29 additions & 29 deletions packages/seacas/libraries/ioss/src/Ioss_Field.h
Original file line number Diff line number Diff line change
Expand Up @@ -71,32 +71,32 @@ namespace Ioss {
*/
enum RoleType {
INTERNAL,
MESH, /**< A field which is used to define the basic geometry
or topology of the model and is not normally transient
in nature. Examples would be element connectivity or
nodal coordinates. */
ATTRIBUTE, /**< A field which is used to define an attribute on an
EntityBlock derived class. Examples would be thickness
of the elements in a shell element block or the radius
of particles in a particle element block. */
MAP, ///< A list of integers specifying some ordering or mapping of the entties
COMMUNICATION, ///< Related to parallel communication
MESH, /**< A field which is used to define the basic geometry
or topology of the model and is not normally transient
in nature. Examples would be element connectivity or
nodal coordinates. */
ATTRIBUTE, /**< A field which is used to define an attribute on an
EntityBlock derived class. Examples would be thickness
of the elements in a shell element block or the radius
of particles in a particle element block. */
MAP, ///< A list of integers specifying some ordering or mapping of the entties
COMMUNICATION, ///< Related to parallel communication
MESH_REDUCTION, /**< A field which summarizes some non-transient data
about an entity (\sa REDUCTION). This could be an
offset applied to an element block, or the units
system of a model or the name of the solid model
which this entity is modelling... */
INFORMATION = MESH_REDUCTION, ///< Same as MESH_REDUCTION
REDUCTION, /**< A field which typically summarizes some transient data
about an entity. The size of this field is typically not
proportional to the number of entities in a GroupingEntity.
An example would be average displacement over a group of
nodes or the kinetic energy of a model. This data is also
transient. */
TRANSIENT /**< A field which is typically calculated at multiple steps
or times in an analysis. These are typically "results"
data. Examples would be nodal displacement or element
stress. */
REDUCTION, /**< A field which typically summarizes some transient data
about an entity. The size of this field is typically not
proportional to the number of entities in a GroupingEntity.
An example would be average displacement over a group of
nodes or the kinetic energy of a model. This data is also
transient. */
TRANSIENT /**< A field which is typically calculated at multiple steps
or times in an analysis. These are typically "results"
data. Examples would be nodal displacement or element
stress. */
};

Field();
Expand All @@ -109,21 +109,21 @@ namespace Ioss {
size_t value_count = 0, size_t index = 0);

/**< Create a composite field named 'name' that contains values of type 'type'
in a storage format of type 'storage'. There will be `copies` instances of the `storage` format.
There are 'value_count' items in the field. If `value_count==0`, then the correct size
in a storage format of type 'storage'. There will be `copies` instances of the `storage`
format. There are 'value_count' items in the field. If `value_count==0`, then the correct size
will be set when the field is added to a `GroupingEntity` */
Field(std::string name, BasicType type, const std::string &storage, int copies, RoleType role,
size_t value_count = 0, size_t index = 0);

/**< Create a composed field named 'name' that contains values of type 'type'
in a primary storage format of type 'storage' and a secondary storage format of type `secondary`.
There are 'value_count' items in the field. If `value_count==0`, then the correct size
will be set when the field is added to a `GroupingEntity` */
in a primary storage format of type 'storage' and a secondary storage format of type
`secondary`. There are 'value_count' items in the field. If `value_count==0`, then the correct
size will be set when the field is added to a `GroupingEntity` */
Field(std::string name, BasicType type, const std::string &storage,
const std::string &secondary, RoleType role, size_t value_count = 0, size_t index = 0);

/**< Create a field named 'name' that contains values of type 'type'
in a storage format of type 'storage' (specified via instance and not name).
in a storage format of type 'storage' (specified via instance and not name).
There are 'value_count' items in the field. If `value_count==0`, then the correct size
will be set when the field is added to a `GroupingEntity` */
Field(std::string name, BasicType type, const VariableType *storage, RoleType role,
Expand Down Expand Up @@ -184,7 +184,7 @@ namespace Ioss {
IOSS_NODISCARD const VariableType *transformed_storage() const { return transStorage_; }

IOSS_NODISCARD size_t raw_count() const { return rawCount_; } ///< Number of items in field
IOSS_NODISCARD size_t transformed_count() const
IOSS_NODISCARD size_t transformed_count() const
{
return transCount_;
} ///< Number of items in field after transforms have been applied.
Expand Down Expand Up @@ -244,8 +244,8 @@ namespace Ioss {
mutable size_t
index_{}; ///< Optional flag that can be used by a client to indicate an ordering.
// Unused by field itself. Used by some DatabaeIO objects to set ordering.
BasicType type_{INVALID}; ///< The basic type of the field (Integer, Real, String)
RoleType role_{INTERNAL}; ///< The role of the field.
BasicType type_{INVALID}; ///< The basic type of the field (Integer, Real, String)
RoleType role_{INTERNAL}; ///< The role of the field.

const VariableType *rawStorage_{nullptr}; ///< Storage type of raw field
const VariableType *transStorage_{nullptr}; ///< Storage type after transformation
Expand Down