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
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
10 changes: 10 additions & 0 deletions .github/workflows/qa.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,3 +17,13 @@ jobs:
clang-format-version: '14'
check-path: .
exclude-regex: '(.\/doc\/|.\/resources\/|.\/tutorials\/|.\/external\/)'

check-spdx-tags:
name: check spdx tags
defaults:
run:
shell: bash -el {0}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: kt3k/license_checker@v1.0.6
14 changes: 14 additions & 0 deletions .licenserc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"framework/**/*.{h,cpp}": [
"// SPDX-FileCopyrightText:",
"// SPDX-License-Identifier:"
],
"modules/**/*.{h,cpp}": [
"// SPDX-FileCopyrightText:",
"// SPDX-License-Identifier:"
],
"lua/**/*.{h,cpp}": [
"// SPDX-FileCopyrightText:",
"// SPDX-License-Identifier:"
]
}
3 changes: 3 additions & 0 deletions framework/data_types/allowable_range.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// SPDX-FileCopyrightText: 2024 The OpenSn Authors <https://open-sn.github.io/opensn/>
// SPDX-License-Identifier: MIT

#pragma once

#include <string>
Expand Down
3 changes: 3 additions & 0 deletions framework/data_types/byte_array.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// SPDX-FileCopyrightText: 2024 The OpenSn Authors <https://open-sn.github.io/opensn/>
// SPDX-License-Identifier: MIT

#pragma once

#include <cstddef>
Expand Down
3 changes: 3 additions & 0 deletions framework/data_types/data_types.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// SPDX-FileCopyrightText: 2024 The OpenSn Authors <https://open-sn.github.io/opensn/>
// SPDX-License-Identifier: MIT

#pragma once

#include <string>
Expand Down
3 changes: 3 additions & 0 deletions framework/data_types/ndarray.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// SPDX-FileCopyrightText: 2024 The OpenSn Authors <https://open-sn.github.io/opensn/>
// SPDX-License-Identifier: MIT

#pragma once

#include <cstddef>
Expand Down
3 changes: 3 additions & 0 deletions framework/data_types/varying.cc
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// SPDX-FileCopyrightText: 2024 The OpenSn Authors <https://open-sn.github.io/opensn/>
// SPDX-License-Identifier: MIT

#include "framework/data_types/varying.h"

#include <algorithm>
Expand Down
3 changes: 3 additions & 0 deletions framework/data_types/varying.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// SPDX-FileCopyrightText: 2024 The OpenSn Authors <https://open-sn.github.io/opensn/>
// SPDX-License-Identifier: MIT

#pragma once

#include "framework/data_types/data_types.h"
Expand Down
3 changes: 3 additions & 0 deletions framework/event_system/event.cc
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// SPDX-FileCopyrightText: 2024 The OpenSn Authors <https://open-sn.github.io/opensn/>
// SPDX-License-Identifier: MIT

#include "framework/event_system/event.h"
#include <map>

Expand Down
3 changes: 3 additions & 0 deletions framework/event_system/event.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// SPDX-FileCopyrightText: 2024 The OpenSn Authors <https://open-sn.github.io/opensn/>
// SPDX-License-Identifier: MIT

#pragma once

#include "framework/parameters/parameter_block.h"
Expand Down
3 changes: 3 additions & 0 deletions framework/event_system/event_publisher.cc
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// SPDX-FileCopyrightText: 2024 The OpenSn Authors <https://open-sn.github.io/opensn/>
// SPDX-License-Identifier: MIT

#include "framework/event_system/event_publisher.h"

#include "framework/event_system/event.h"
Expand Down
3 changes: 3 additions & 0 deletions framework/event_system/event_publisher.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// SPDX-FileCopyrightText: 2024 The OpenSn Authors <https://open-sn.github.io/opensn/>
// SPDX-License-Identifier: MIT

#pragma once

#include <vector>
Expand Down
3 changes: 3 additions & 0 deletions framework/event_system/event_subscriber.cc
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// SPDX-FileCopyrightText: 2024 The OpenSn Authors <https://open-sn.github.io/opensn/>
// SPDX-License-Identifier: MIT

#include "framework/event_system/event_subscriber.h"

namespace opensn
Expand Down
3 changes: 3 additions & 0 deletions framework/event_system/event_subscriber.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// SPDX-FileCopyrightText: 2024 The OpenSn Authors <https://open-sn.github.io/opensn/>
// SPDX-License-Identifier: MIT

#pragma once

namespace opensn
Expand Down
3 changes: 3 additions & 0 deletions framework/event_system/physics_event_publisher.cc
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// SPDX-FileCopyrightText: 2024 The OpenSn Authors <https://open-sn.github.io/opensn/>
// SPDX-License-Identifier: MIT

#include "framework/event_system/physics_event_publisher.h"
#include "framework/event_system/event.h"
#include "framework/event_system/system_wide_event_publisher.h"
Expand Down
3 changes: 3 additions & 0 deletions framework/event_system/physics_event_publisher.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// SPDX-FileCopyrightText: 2024 The OpenSn Authors <https://open-sn.github.io/opensn/>
// SPDX-License-Identifier: MIT

#pragma once

#include "framework/event_system/event_publisher.h"
Expand Down
3 changes: 3 additions & 0 deletions framework/event_system/system_wide_event_publisher.cc
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// SPDX-FileCopyrightText: 2024 The OpenSn Authors <https://open-sn.github.io/opensn/>
// SPDX-License-Identifier: MIT

#include "framework/event_system/system_wide_event_publisher.h"

namespace opensn
Expand Down
3 changes: 3 additions & 0 deletions framework/event_system/system_wide_event_publisher.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// SPDX-FileCopyrightText: 2024 The OpenSn Authors <https://open-sn.github.io/opensn/>
// SPDX-License-Identifier: MIT

#pragma once

#include "framework/event_system/event_publisher.h"
Expand Down
3 changes: 3 additions & 0 deletions framework/field_functions/field_function.cc
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// SPDX-FileCopyrightText: 2024 The OpenSn Authors <https://open-sn.github.io/opensn/>
// SPDX-License-Identifier: MIT

#include "framework/field_functions/field_function.h"
#include "framework/logging/log_exceptions.h"

Expand Down
3 changes: 3 additions & 0 deletions framework/field_functions/field_function.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// SPDX-FileCopyrightText: 2024 The OpenSn Authors <https://open-sn.github.io/opensn/>
// SPDX-License-Identifier: MIT

#pragma once

#include "framework/object.h"
Expand Down
3 changes: 3 additions & 0 deletions framework/field_functions/field_function_grid_based.cc
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// SPDX-FileCopyrightText: 2024 The OpenSn Authors <https://open-sn.github.io/opensn/>
// SPDX-License-Identifier: MIT

#include "framework/field_functions/field_function_grid_based.h"
#include "framework/math/spatial_discretization/finite_volume/finite_volume.h"
#include "framework/math/spatial_discretization/finite_element/piecewise_linear/piecewise_linear_continuous.h"
Expand Down
3 changes: 3 additions & 0 deletions framework/field_functions/field_function_grid_based.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// SPDX-FileCopyrightText: 2024 The OpenSn Authors <https://open-sn.github.io/opensn/>
// SPDX-License-Identifier: MIT

#pragma once

#include "framework/field_functions/field_function.h"
Expand Down
3 changes: 3 additions & 0 deletions framework/field_functions/field_function_interface.cc
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// SPDX-FileCopyrightText: 2024 The OpenSn Authors <https://open-sn.github.io/opensn/>
// SPDX-License-Identifier: MIT

#include "framework/field_functions/field_function_interface.h"
#include "framework/field_functions/field_function.h"
#include "framework/runtime.h"
Expand Down
3 changes: 3 additions & 0 deletions framework/field_functions/field_function_interface.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// SPDX-FileCopyrightText: 2024 The OpenSn Authors <https://open-sn.github.io/opensn/>
// SPDX-License-Identifier: MIT

#pragma once

#include "framework/parameters/input_parameters.h"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// SPDX-FileCopyrightText: 2024 The OpenSn Authors <https://open-sn.github.io/opensn/>
// SPDX-License-Identifier: MIT

#include "framework/field_functions/grid_based_field_function_interface.h"
#include "framework/field_functions/field_function_grid_based.h"

Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// SPDX-FileCopyrightText: 2024 The OpenSn Authors <https://open-sn.github.io/opensn/>
// SPDX-License-Identifier: MIT

#pragma once

#include "framework/field_functions/field_function_interface.h"
Expand Down
3 changes: 3 additions & 0 deletions framework/field_functions/interpolation/ffinter_line.cc
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// SPDX-FileCopyrightText: 2024 The OpenSn Authors <https://open-sn.github.io/opensn/>
// SPDX-License-Identifier: MIT

#include "framework/field_functions/interpolation/ffinter_line.h"
#include "framework/math/spatial_discretization/spatial_discretization.h"
#include "framework/math/vector_ghost_communicator//vector_ghost_communicator.h"
Expand Down
3 changes: 3 additions & 0 deletions framework/field_functions/interpolation/ffinter_line.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// SPDX-FileCopyrightText: 2024 The OpenSn Authors <https://open-sn.github.io/opensn/>
// SPDX-License-Identifier: MIT

#pragma once

#include "framework/field_functions/interpolation/ffinterpolation.h"
Expand Down
3 changes: 3 additions & 0 deletions framework/field_functions/interpolation/ffinter_point.cc
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// SPDX-FileCopyrightText: 2024 The OpenSn Authors <https://open-sn.github.io/opensn/>
// SPDX-License-Identifier: MIT

#include "framework/field_functions/interpolation/ffinter_point.h"
#include "framework/field_functions/field_function_grid_based.h"
#include "framework/math/spatial_discretization/spatial_discretization.h"
Expand Down
3 changes: 3 additions & 0 deletions framework/field_functions/interpolation/ffinter_point.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// SPDX-FileCopyrightText: 2024 The OpenSn Authors <https://open-sn.github.io/opensn/>
// SPDX-License-Identifier: MIT

#pragma once

#include "framework/field_functions/interpolation/ffinterpolation.h"
Expand Down
3 changes: 3 additions & 0 deletions framework/field_functions/interpolation/ffinter_slice.cc
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// SPDX-FileCopyrightText: 2024 The OpenSn Authors <https://open-sn.github.io/opensn/>
// SPDX-License-Identifier: MIT

#include "framework/field_functions/interpolation/ffinter_slice.h"
#include "framework/mesh/cell/cell.h"
#include "framework/mesh/raytrace/raytracer.h"
Expand Down
3 changes: 3 additions & 0 deletions framework/field_functions/interpolation/ffinter_slice.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// SPDX-FileCopyrightText: 2024 The OpenSn Authors <https://open-sn.github.io/opensn/>
// SPDX-License-Identifier: MIT

#pragma once

#include "framework/field_functions/interpolation/ffinterpolation.h"
Expand Down
3 changes: 3 additions & 0 deletions framework/field_functions/interpolation/ffinter_volume.cc
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// SPDX-FileCopyrightText: 2024 The OpenSn Authors <https://open-sn.github.io/opensn/>
// SPDX-License-Identifier: MIT

#include "framework/field_functions/interpolation/ffinter_volume.h"
#include "framework/field_functions/field_function_grid_based.h"
#include "framework/math/spatial_discretization/spatial_discretization.h"
Expand Down
3 changes: 3 additions & 0 deletions framework/field_functions/interpolation/ffinter_volume.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// SPDX-FileCopyrightText: 2024 The OpenSn Authors <https://open-sn.github.io/opensn/>
// SPDX-License-Identifier: MIT

#pragma once

#include "framework/field_functions/interpolation/ffinterpolation.h"
Expand Down
3 changes: 3 additions & 0 deletions framework/field_functions/interpolation/ffinterpolation.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// SPDX-FileCopyrightText: 2024 The OpenSn Authors <https://open-sn.github.io/opensn/>
// SPDX-License-Identifier: MIT

#pragma once

#include <memory>
Expand Down
3 changes: 3 additions & 0 deletions framework/field_functions/operations/field_copy.cc
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// SPDX-FileCopyrightText: 2024 The OpenSn Authors <https://open-sn.github.io/opensn/>
// SPDX-License-Identifier: MIT

#include "framework/field_functions/operations/field_copy.h"
#include "framework/object_factory.h"
#include "framework/math/spatial_discretization/spatial_discretization.h"
Expand Down
3 changes: 3 additions & 0 deletions framework/field_functions/operations/field_copy.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// SPDX-FileCopyrightText: 2024 The OpenSn Authors <https://open-sn.github.io/opensn/>
// SPDX-License-Identifier: MIT

#pragma once

#include "framework/field_functions/operations/field_operation.h"
Expand Down
3 changes: 3 additions & 0 deletions framework/field_functions/operations/field_operation.cc
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// SPDX-FileCopyrightText: 2024 The OpenSn Authors <https://open-sn.github.io/opensn/>
// SPDX-License-Identifier: MIT

#include "framework/field_functions/operations/field_operation.h"

namespace opensn
Expand Down
3 changes: 3 additions & 0 deletions framework/field_functions/operations/field_operation.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// SPDX-FileCopyrightText: 2024 The OpenSn Authors <https://open-sn.github.io/opensn/>
// SPDX-License-Identifier: MIT

#pragma once

#include "framework/object.h"
Expand Down
3 changes: 3 additions & 0 deletions framework/field_functions/operations/multi_field.cc
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// SPDX-FileCopyrightText: 2024 The OpenSn Authors <https://open-sn.github.io/opensn/>
// SPDX-License-Identifier: MIT

#include "framework/field_functions/operations/multi_field.h"
#include "framework/object_factory.h"
#include "framework/math/spatial_discretization/spatial_discretization.h"
Expand Down
3 changes: 3 additions & 0 deletions framework/field_functions/operations/multi_field.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// SPDX-FileCopyrightText: 2024 The OpenSn Authors <https://open-sn.github.io/opensn/>
// SPDX-License-Identifier: MIT

#pragma once

#include "framework/field_functions/operations/field_operation.h"
Expand Down
3 changes: 3 additions & 0 deletions framework/field_functions/operations/partitioner_predicate.cc
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// SPDX-FileCopyrightText: 2024 The OpenSn Authors <https://open-sn.github.io/opensn/>
// SPDX-License-Identifier: MIT

#include "framework/field_functions/operations/partitioner_predicate.h"
#include "framework/graphs/graph_partitioner.h"
#include "framework/field_functions/field_function_grid_based.h"
Expand Down
3 changes: 3 additions & 0 deletions framework/field_functions/operations/partitioner_predicate.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// SPDX-FileCopyrightText: 2024 The OpenSn Authors <https://open-sn.github.io/opensn/>
// SPDX-License-Identifier: MIT

#pragma once

#include "framework/field_functions/operations/field_operation.h"
Expand Down
3 changes: 3 additions & 0 deletions framework/graphs/directed_graph.cc
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// SPDX-FileCopyrightText: 2024 The OpenSn Authors <https://open-sn.github.io/opensn/>
// SPDX-License-Identifier: MIT

#include "framework/graphs/directed_graph.h"

#include "framework/runtime.h"
Expand Down
3 changes: 3 additions & 0 deletions framework/graphs/directed_graph.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// SPDX-FileCopyrightText: 2024 The OpenSn Authors <https://open-sn.github.io/opensn/>
// SPDX-License-Identifier: MIT

#pragma once

#include "framework/graphs/directed_graph_vertex.h"
Expand Down
3 changes: 3 additions & 0 deletions framework/graphs/directed_graph_vertex.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// SPDX-FileCopyrightText: 2024 The OpenSn Authors <https://open-sn.github.io/opensn/>
// SPDX-License-Identifier: MIT

#pragma once

#include "framework/graphs/graph.h"
Expand Down
3 changes: 3 additions & 0 deletions framework/graphs/graph.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// SPDX-FileCopyrightText: 2024 The OpenSn Authors <https://open-sn.github.io/opensn/>
// SPDX-License-Identifier: MIT

#pragma once

#include "framework/mesh/mesh.h"
Expand Down
3 changes: 3 additions & 0 deletions framework/graphs/graph_partitioner.cc
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// SPDX-FileCopyrightText: 2024 The OpenSn Authors <https://open-sn.github.io/opensn/>
// SPDX-License-Identifier: MIT

#include "framework/graphs/graph_partitioner.h"

namespace opensn
Expand Down
3 changes: 3 additions & 0 deletions framework/graphs/graph_partitioner.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// SPDX-FileCopyrightText: 2024 The OpenSn Authors <https://open-sn.github.io/opensn/>
// SPDX-License-Identifier: MIT

#pragma once

#include "framework/object.h"
Expand Down
3 changes: 3 additions & 0 deletions framework/graphs/kba_graph_partitioner.cc
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// SPDX-FileCopyrightText: 2024 The OpenSn Authors <https://open-sn.github.io/opensn/>
// SPDX-License-Identifier: MIT

#include "framework/graphs/kba_graph_partitioner.h"

#include "framework/object_factory.h"
Expand Down
3 changes: 3 additions & 0 deletions framework/graphs/kba_graph_partitioner.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// SPDX-FileCopyrightText: 2024 The OpenSn Authors <https://open-sn.github.io/opensn/>
// SPDX-License-Identifier: MIT

#pragma once

#include "framework/graphs/graph_partitioner.h"
Expand Down
3 changes: 3 additions & 0 deletions framework/graphs/linear_graph_partitioner.cc
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// SPDX-FileCopyrightText: 2024 The OpenSn Authors <https://open-sn.github.io/opensn/>
// SPDX-License-Identifier: MIT

#include "framework/graphs/linear_graph_partitioner.h"

#include "framework/object_factory.h"
Expand Down
3 changes: 3 additions & 0 deletions framework/graphs/linear_graph_partitioner.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// SPDX-FileCopyrightText: 2024 The OpenSn Authors <https://open-sn.github.io/opensn/>
// SPDX-License-Identifier: MIT

#pragma once

#include "framework/graphs/graph_partitioner.h"
Expand Down
3 changes: 3 additions & 0 deletions framework/graphs/petsc_graph_partitioner.cc
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// SPDX-FileCopyrightText: 2024 The OpenSn Authors <https://open-sn.github.io/opensn/>
// SPDX-License-Identifier: MIT

#include "framework/graphs/petsc_graph_partitioner.h"

#include "framework/object_factory.h"
Expand Down
3 changes: 3 additions & 0 deletions framework/graphs/petsc_graph_partitioner.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// SPDX-FileCopyrightText: 2024 The OpenSn Authors <https://open-sn.github.io/opensn/>
// SPDX-License-Identifier: MIT

#pragma once

#include "framework/graphs/graph_partitioner.h"
Expand Down
Loading