Skip to content

Commit

Permalink
Use single line comment style for copyright (#561)
Browse files Browse the repository at this point in the history
change comment style
  • Loading branch information
boulderdaze authored Jun 10, 2024
1 parent 4c0521b commit 3bc0634
Show file tree
Hide file tree
Showing 70 changed files with 172 additions and 308 deletions.
6 changes: 2 additions & 4 deletions include/micm/configure/solver_config.hpp
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
/* Copyright (C) 2023-2024 National Center for Atmospheric Research
*
* SPDX-License-Identifier: Apache-2.0
*/
// Copyright (C) 2023-2024 National Center for Atmospheric Research
// SPDX-License-Identifier: Apache-2.0
#pragma once

#include <micm/process/arrhenius_rate_constant.hpp>
Expand Down
16 changes: 7 additions & 9 deletions include/micm/jit/jit_compiler.hpp
Original file line number Diff line number Diff line change
@@ -1,12 +1,10 @@
/* Copyright (C) 2023-2024 National Center for Atmospheric Research
*
* SPDX-License-Identifier: Apache-2.0
*
* Based on examples from the LLVM Project,
* under the Apache License v2.0 with LLVM Exceptions.
* See https://llvm.org/LICENSE.txt for license information.
* SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
*/
// Copyright (C) 2023-2024 National Center for Atmospheric Research
// SPDX-License-Identifier: Apache-2.0
//
// Based on examples from the LLVM Project,
// under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
#pragma once

#include <micm/util/error.hpp>
Expand Down
6 changes: 2 additions & 4 deletions include/micm/jit/jit_function.hpp
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
/* Copyright (C) 2023-2024 National Center for Atmospheric Research
*
* SPDX-License-Identifier: Apache-2.0
*/
// Copyright (C) 2023-2024 National Center for Atmospheric Research
// SPDX-License-Identifier: Apache-2.0
#pragma once

#include <micm/jit/jit_compiler.hpp>
Expand Down
6 changes: 2 additions & 4 deletions include/micm/process/arrhenius_rate_constant.hpp
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
/* Copyright (C) 2023-2024 National Center for Atmospheric Research
*
* SPDX-License-Identifier: Apache-2.0
*/
// Copyright (C) 2023-2024 National Center for Atmospheric Research
// SPDX-License-Identifier: Apache-2.0
#pragma once

#include <micm/process/rate_constant.hpp>
Expand Down
6 changes: 2 additions & 4 deletions include/micm/process/branched_rate_constant.hpp
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
/* Copyright (C) 2023-2024 National Center for Atmospheric Research
*
* SPDX-License-Identifier: Apache-2.0
*/
// Copyright (C) 2023-2024 National Center for Atmospheric Research
// SPDX-License-Identifier: Apache-2.0
#pragma once

#include <micm/process/rate_constant.hpp>
Expand Down
6 changes: 2 additions & 4 deletions include/micm/process/cuda_process_set.cuh
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
/* Copyright (C) 2023-2024 National Center for Atmospheric Research
*
* SPDX-License-Identifier: Apache-2.0
*/
// Copyright (C) 2023-2024 National Center for Atmospheric Research
// SPDX-License-Identifier: Apache-2.0
#pragma once

#include <micm/util/cuda_param.hpp>
Expand Down
6 changes: 2 additions & 4 deletions include/micm/process/cuda_process_set.hpp
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
/* Copyright (C) 2023-2024 National Center for Atmospheric Research
*
* SPDX-License-Identifier: Apache-2.0
*/
// Copyright (C) 2023-2024 National Center for Atmospheric Research
// SPDX-License-Identifier: Apache-2.0
#pragma once

#include <micm/process/cuda_process_set.cuh>
Expand Down
6 changes: 2 additions & 4 deletions include/micm/process/jit_process_set.hpp
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
/* Copyright (C) 2023-2024 National Center for Atmospheric Research
*
* SPDX-License-Identifier: Apache-2.0
*/
// Copyright (C) 2023-2024 National Center for Atmospheric Research
// SPDX-License-Identifier: Apache-2.0
#pragma once

#include <micm/jit/jit_function.hpp>
Expand Down
6 changes: 2 additions & 4 deletions include/micm/process/process.hpp
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
/* Copyright (C) 2023-2024 National Center for Atmospheric Research
*
* SPDX-License-Identifier: Apache-2.0
*/
// Copyright (C) 2023-2024 National Center for Atmospheric Research
// SPDX-License-Identifier: Apache-2.0
#pragma once

#include <micm/process/arrhenius_rate_constant.hpp>
Expand Down
6 changes: 2 additions & 4 deletions include/micm/process/process_set.hpp
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
/* Copyright (C) 2023-2024 National Center for Atmospheric Research
*
* SPDX-License-Identifier: Apache-2.0
*/
// Copyright (C) 2023-2024 National Center for Atmospheric Research
// SPDX-License-Identifier: Apache-2.0
#pragma once

#include <micm/process/process.hpp>
Expand Down
6 changes: 2 additions & 4 deletions include/micm/process/rate_constant.hpp
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
/* Copyright (C) 2023-2024 National Center for Atmospheric Research
*
* SPDX-License-Identifier: Apache-2.0
*/
// Copyright (C) 2023-2024 National Center for Atmospheric Research
// SPDX-License-Identifier: Apache-2.0
#pragma once

#include <micm/system/conditions.hpp>
Expand Down
6 changes: 2 additions & 4 deletions include/micm/process/surface_rate_constant.hpp
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
/* Copyright (C) 2023-2024 National Center for Atmospheric Research
*
* SPDX-License-Identifier: Apache-2.0
*/
// Copyright (C) 2023-2024 National Center for Atmospheric Research
// SPDX-License-Identifier: Apache-2.0
#pragma once

#define _USE_MATH_DEFINES
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
/* Copyright (C) 2023-2024 National Center for Atmospheric Research
*
* SPDX-License-Identifier: Apache-2.0
*/
// Copyright (C) 2023-2024 National Center for Atmospheric Research
// SPDX-License-Identifier: Apache-2.0
#pragma once

#include <micm/process/rate_constant.hpp>
Expand Down
6 changes: 2 additions & 4 deletions include/micm/process/troe_rate_constant.hpp
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
/* Copyright (C) 2023-2024 National Center for Atmospheric Research
*
* SPDX-License-Identifier: Apache-2.0
*/
// Copyright (C) 2023-2024 National Center for Atmospheric Research
// SPDX-License-Identifier: Apache-2.0
#pragma once

#include <micm/process/rate_constant.hpp>
Expand Down
6 changes: 2 additions & 4 deletions include/micm/process/tunneling_rate_constant.hpp
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
/* Copyright (C) 2023-2024 National Center for Atmospheric Research
*
* SPDX-License-Identifier: Apache-2.0
*/
// Copyright (C) 2023-2024 National Center for Atmospheric Research
// SPDX-License-Identifier: Apache-2.0
#pragma once

#include <micm/process/rate_constant.hpp>
Expand Down
6 changes: 2 additions & 4 deletions include/micm/process/user_defined_rate_constant.hpp
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
/* Copyright (C) 2023-2024 National Center for Atmospheric Research
*
* SPDX-License-Identifier: Apache-2.0
*/
// Copyright (C) 2023-2024 National Center for Atmospheric Research
// SPDX-License-Identifier: Apache-2.0
#pragma once

#include <micm/process/rate_constant.hpp>
Expand Down
8 changes: 3 additions & 5 deletions include/micm/profiler/instrumentation.hpp
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
/* Copyright (C) 2019-2022 Hazel Engine
* Copyright (C) 2023-2024 National Center for Atmospheric Research
*
* SPDX-License-Identifier: Apache-2.0
*/
// Copyright (C) 2023-2024 National Center for Atmospheric Research
// Copyright (C) 2019-2022 Hazel Engine
// SPDX-License-Identifier: Apache-2.0
#pragma once

#include <algorithm>
Expand Down
6 changes: 2 additions & 4 deletions include/micm/solver/backward_euler.hpp
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
/* Copyright (C) 2023-2024 National Center for Atmospheric Research
*
* SPDX-License-Identifier: Apache-2.0
*/
// Copyright (C) 2023-2024 National Center for Atmospheric Research
// SPDX-License-Identifier: Apache-2.0
#pragma once

#include <micm/process/process.hpp>
Expand Down
7 changes: 3 additions & 4 deletions include/micm/solver/backward_euler.inl
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
/* Copyright (C) 2023-2024 National Center for Atmospheric Research
*
* SPDX-License-Identifier: Apache-2.0
*/
// Copyright (C) 2023-2024 National Center for Atmospheric Research
// SPDX-License-Identifier: Apache-2.0

enum class MicmBackwardEulerErrc
{
FailedToConverge = 1
Expand Down
6 changes: 2 additions & 4 deletions include/micm/solver/backward_euler_solver_parameters.hpp
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
/* Copyright (C) 2023-2024 National Center for Atmospheric Research
*
* SPDX-License-Identifier: Apache-2.0
*/
// Copyright (C) 2023-2024 National Center for Atmospheric Research
// SPDX-License-Identifier: Apache-2.0
#pragma once

#include <array>
Expand Down
6 changes: 2 additions & 4 deletions include/micm/solver/cuda_linear_solver.cuh
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
/* Copyright (C) 2023-2024 National Center for Atmospheric Research
*
* SPDX-License-Identifier: Apache-2.0
*/
// Copyright (C) 2023-2024 National Center for Atmospheric Research
// SPDX-License-Identifier: Apache-2.0
#pragma once

#include <micm/util/cuda_param.hpp>
Expand Down
6 changes: 2 additions & 4 deletions include/micm/solver/cuda_linear_solver.hpp
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
/* Copyright (C) 2023-2024 National Center for Atmospheric Research
*
* SPDX-License-Identifier: Apache-2.0
*/
// Copyright (C) 2023-2024 National Center for Atmospheric Research
// SPDX-License-Identifier: Apache-2.0
#pragma once

#include <micm/solver/cuda_linear_solver.cuh>
Expand Down
6 changes: 2 additions & 4 deletions include/micm/solver/cuda_lu_decomposition.cuh
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
/* Copyright (C) 2023-2024 National Center for Atmospheric Research
*
* SPDX-License-Identifier: Apache-2.0
*/
// Copyright (C) 2023-2024 National Center for Atmospheric Research
// SPDX-License-Identifier: Apache-2.0
#pragma once

#include <micm/util/cuda_param.hpp>
Expand Down
6 changes: 2 additions & 4 deletions include/micm/solver/cuda_lu_decomposition.hpp
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
/* Copyright (C) 2023-2024 National Center for Atmospheric Research
*
* SPDX-License-Identifier: Apache-2.0
*/
// Copyright (C) 2023-2024 National Center for Atmospheric Research
// SPDX-License-Identifier: Apache-2.0
#pragma once

#include <micm/solver/cuda_lu_decomposition.cuh>
Expand Down
6 changes: 2 additions & 4 deletions include/micm/solver/cuda_rosenbrock.cuh
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
/* Copyright (C) 2023-2024 National Center for Atmospheric Research
*
* SPDX-License-Identifier: Apache-2.0
*/
// Copyright (C) 2023-2024 National Center for Atmospheric Research
// SPDX-License-Identifier: Apache-2.0
#pragma once

#include <micm/solver/rosenbrock_solver_parameters.hpp>
Expand Down
6 changes: 2 additions & 4 deletions include/micm/solver/cuda_rosenbrock.hpp
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
/* Copyright (C) 2023-2024 National Center for Atmospheric Research
*
* SPDX-License-Identifier: Apache-2.0
*/
// Copyright (C) 2023-2024 National Center for Atmospheric Research
// SPDX-License-Identifier: Apache-2.0
#pragma once

#include <micm/process/cuda_process_set.hpp>
Expand Down
6 changes: 2 additions & 4 deletions include/micm/solver/jit_linear_solver.hpp
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
/* Copyright (C) 2023-2024 National Center for Atmospheric Research
*
* SPDX-License-Identifier: Apache-2.0
*/
// Copyright (C) 2023-2024 National Center for Atmospheric Research
// SPDX-License-Identifier: Apache-2.0
#pragma once

#include <micm/jit/jit_compiler.hpp>
Expand Down
7 changes: 3 additions & 4 deletions include/micm/solver/jit_linear_solver.inl
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
/* Copyright (C) 2023-2024 National Center for Atmospheric Research
*
* SPDX-License-Identifier: Apache-2.0
*/
// Copyright (C) 2023-2024 National Center for Atmospheric Research
// SPDX-License-Identifier: Apache-2.0

namespace micm
{

Expand Down
6 changes: 2 additions & 4 deletions include/micm/solver/jit_lu_decomposition.hpp
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
/* Copyright (C) 2023-2024 National Center for Atmospheric Research
*
* SPDX-License-Identifier: Apache-2.0
*/
// Copyright (C) 2023-2024 National Center for Atmospheric Research
// SPDX-License-Identifier: Apache-2.0
#pragma once

#include <micm/jit/jit_function.hpp>
Expand Down
7 changes: 3 additions & 4 deletions include/micm/solver/jit_lu_decomposition.inl
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
/* Copyright (C) 2023-2024 National Center for Atmospheric Research
*
* SPDX-License-Identifier: Apache-2.0
*/
// Copyright (C) 2023-2024 National Center for Atmospheric Research
// SPDX-License-Identifier: Apache-2.0

namespace micm
{

Expand Down
27 changes: 12 additions & 15 deletions include/micm/solver/jit_rosenbrock.hpp
Original file line number Diff line number Diff line change
@@ -1,18 +1,15 @@
/* Copyright (C) 2023-2024 National Center for Atmospheric Research
*
* SPDX-License-Identifier: Apache-2.0
*
* Much of this solver was formulated and implemented from this book:
* Hairer, E., Wanner, G., 1996. Solving Ordinary Differential Equations II: Stiff and Differential-Algebraic Problems, 2nd
* edition. ed. Springer, Berlin ; New York. The source code for many (all?) of the solvers in that book can be found here:
* http://www.unige.ch/~hairer/software.html
*
* Some extensions to the rosenbrock solver formulated there were formulated in this paper
* Sandu, A., Verwer, J.G., Blom, J.G., Spee, E.J., Carmichael, G.R., Potra, F.A., 1997. Benchmarking stiff ode solvers for
* atmospheric chemistry problems II: Rosenbrock solvers. Atmospheric Environment 31, 3459–3472.
* https://doi.org/10.1016/S1352-2310(97)83212-8
*
*/
// Copyright (C) 2023-2024 National Center for Atmospheric Research
// SPDX-License-Identifier: Apache-2.0
//
// Much of this solver was formulated and implemented from this book:
// Hairer, E., Wanner, G., 1996. Solving Ordinary Differential Equations II: Stiff and Differential-Algebraic Problems, 2nd
// edition. ed. Springer, Berlin ; New York. The source code for many (all?) of the solvers in that book can be found here:
// http://www.unige.ch/~hairer/software.html
//
// Some extensions to the rosenbrock solver formulated there were formulated in this paper
// Sandu, A., Verwer, J.G., Blom, J.G., Spee, E.J., Carmichael, G.R., Potra, F.A., 1997. Benchmarking stiff ode solvers for
// atmospheric chemistry problems II: Rosenbrock solvers. Atmospheric Environment 31, 3459–3472.
// https://doi.org/10.1016/S1352-2310(97)83212-8
#pragma once

#include <micm/jit/jit_function.hpp>
Expand Down
6 changes: 2 additions & 4 deletions include/micm/solver/linear_solver.hpp
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
/* Copyright (C) 2023-2024 National Center for Atmospheric Research
*
* SPDX-License-Identifier: Apache-2.0
*/
// Copyright (C) 2023-2024 National Center for Atmospheric Research
// SPDX-License-Identifier: Apache-2.0
#pragma once

#include <micm/profiler/instrumentation.hpp>
Expand Down
6 changes: 2 additions & 4 deletions include/micm/solver/linear_solver.inl
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
/* Copyright (C) 2023-2024 National Center for Atmospheric Research
*
* SPDX-License-Identifier: Apache-2.0
*/
// Copyright (C) 2023-2024 National Center for Atmospheric Research
// SPDX-License-Identifier: Apache-2.0

namespace micm
{
Expand Down
6 changes: 2 additions & 4 deletions include/micm/solver/lu_decomposition.hpp
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
/* Copyright (C) 2023-2024 National Center for Atmospheric Research
*
* SPDX-License-Identifier: Apache-2.0
*/
// Copyright (C) 2023-2024 National Center for Atmospheric Research
// SPDX-License-Identifier: Apache-2.0
#pragma once

#include <micm/profiler/instrumentation.hpp>
Expand Down
7 changes: 3 additions & 4 deletions include/micm/solver/lu_decomposition.inl
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
/* Copyright (C) 2023-2024 National Center for Atmospheric Research
*
* SPDX-License-Identifier: Apache-2.0
*/
// Copyright (C) 2023-2024 National Center for Atmospheric Research
// SPDX-License-Identifier: Apache-2.0

namespace micm
{

Expand Down
Loading

0 comments on commit 3bc0634

Please sign in to comment.