From 2b259b0e370795f8cc3de698397ad3158d234aa2 Mon Sep 17 00:00:00 2001 From: Matthias Maier Date: Fri, 26 Jul 2024 02:28:36 -0500 Subject: [PATCH] nonlinear-heat_transfer_with_AD_NOX: add copyright notices and license --- .../include/allheaders.h | 11 +++++++---- .../include/nonlinear_heat.h | 12 +++++++++--- nonlinear-heat_transfer_with_AD_NOX/mesh/README.md | 11 +++++++++++ .../nonlinear_heat.cc | 11 ++++++++--- .../source/boundary_values.cc | 12 +++++++++--- .../source/compute_jacobian.cc | 13 ++++++++++--- .../source/compute_residual.cc | 13 ++++++++++--- .../source/initial_conditions.cc | 11 +++++++++++ .../source/nonlinear_heat_cons_des.cc | 12 ++++++++++++ .../source/output_results.cc | 11 +++++++++++ .../source/set_boundary_conditions.cc | 11 +++++++++++ .../source/setup_system.cc | 11 +++++++++++ .../source/solve_and_run.cc | 11 +++++++++++ 13 files changed, 131 insertions(+), 19 deletions(-) create mode 100644 nonlinear-heat_transfer_with_AD_NOX/mesh/README.md diff --git a/nonlinear-heat_transfer_with_AD_NOX/include/allheaders.h b/nonlinear-heat_transfer_with_AD_NOX/include/allheaders.h index 32e95839..cb77bb62 100755 --- a/nonlinear-heat_transfer_with_AD_NOX/include/allheaders.h +++ b/nonlinear-heat_transfer_with_AD_NOX/include/allheaders.h @@ -1,8 +1,11 @@ -/* - * allheader.h +/* ----------------------------------------------------------------------------- * - * Created on: 20 Jun 2024 - * Author: Narasimhan Swaminathan + * SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception OR LGPL-2.1-or-later + * Copyright (C) 2024 by Narasimhan Swaminathan + * + * This file is part of the deal.II code gallery. + * + * ----------------------------------------------------------------------------- */ #ifndef __ALLHEADERS_H_INCLUDED__ diff --git a/nonlinear-heat_transfer_with_AD_NOX/include/nonlinear_heat.h b/nonlinear-heat_transfer_with_AD_NOX/include/nonlinear_heat.h index 05fb1696..dbfe412f 100755 --- a/nonlinear-heat_transfer_with_AD_NOX/include/nonlinear_heat.h +++ b/nonlinear-heat_transfer_with_AD_NOX/include/nonlinear_heat.h @@ -1,7 +1,13 @@ -/*----------------------------------------------------------------------------- - * Created by Narasimhan Swaminathan on 20 Jun 2024. - *----------------------------------------------------------------------------- +/* ----------------------------------------------------------------------------- + * + * SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception OR LGPL-2.1-or-later + * Copyright (C) 2024 by Narasimhan Swaminathan + * + * This file is part of the deal.II code gallery. + * + * ----------------------------------------------------------------------------- */ + #ifndef __MAIN_ALL_HEADER_H_INCLUDED__ #define __MAIN_ALL_HEADER_H_INCLUDED__ #include "allheaders.h" diff --git a/nonlinear-heat_transfer_with_AD_NOX/mesh/README.md b/nonlinear-heat_transfer_with_AD_NOX/mesh/README.md new file mode 100644 index 00000000..cf00bf96 --- /dev/null +++ b/nonlinear-heat_transfer_with_AD_NOX/mesh/README.md @@ -0,0 +1,11 @@ +The following copyright notice applies to the mesh files in this directory: +``` +/* + * SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception OR LGPL-2.1-or-later + * Copyright (C) 2024 by Narasimhan Swaminathan + * + * This file is part of the deal.II code gallery. + * + * ----------------------------------------------------------------------------- + */ +``` diff --git a/nonlinear-heat_transfer_with_AD_NOX/nonlinear_heat.cc b/nonlinear-heat_transfer_with_AD_NOX/nonlinear_heat.cc index ce946da3..92e0fb45 100644 --- a/nonlinear-heat_transfer_with_AD_NOX/nonlinear_heat.cc +++ b/nonlinear-heat_transfer_with_AD_NOX/nonlinear_heat.cc @@ -1,6 +1,11 @@ -/** - * Contributed by Narasimhan Swaminathan - * 20 Jun 2024 +/* ----------------------------------------------------------------------------- + * + * SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception OR LGPL-2.1-or-later + * Copyright (C) 2024 by Narasimhan Swaminathan + * + * This file is part of the deal.II code gallery. + * + * ----------------------------------------------------------------------------- */ #include "allheaders.h" diff --git a/nonlinear-heat_transfer_with_AD_NOX/source/boundary_values.cc b/nonlinear-heat_transfer_with_AD_NOX/source/boundary_values.cc index 4facac47..954a2008 100644 --- a/nonlinear-heat_transfer_with_AD_NOX/source/boundary_values.cc +++ b/nonlinear-heat_transfer_with_AD_NOX/source/boundary_values.cc @@ -1,6 +1,12 @@ -/* - * Created by Narasimhan Swaminathan on 20 Jun 2024. -*/ +/* ----------------------------------------------------------------------------- + * + * SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception OR LGPL-2.1-or-later + * Copyright (C) 2024 by Narasimhan Swaminathan + * + * This file is part of the deal.II code gallery. + * + * ----------------------------------------------------------------------------- + */ #include "nonlinear_heat.h" /** diff --git a/nonlinear-heat_transfer_with_AD_NOX/source/compute_jacobian.cc b/nonlinear-heat_transfer_with_AD_NOX/source/compute_jacobian.cc index 46702695..05d359d0 100644 --- a/nonlinear-heat_transfer_with_AD_NOX/source/compute_jacobian.cc +++ b/nonlinear-heat_transfer_with_AD_NOX/source/compute_jacobian.cc @@ -1,6 +1,13 @@ -/* - * Created by Narasimhan Swaminathan on 20 Jun 2024. -*/ +/* ----------------------------------------------------------------------------- + * + * SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception OR LGPL-2.1-or-later + * Copyright (C) 2024 by Narasimhan Swaminathan + * + * This file is part of the deal.II code gallery. + * + * ----------------------------------------------------------------------------- + */ + #include "allheaders.h" #include "nonlinear_heat.h" /** diff --git a/nonlinear-heat_transfer_with_AD_NOX/source/compute_residual.cc b/nonlinear-heat_transfer_with_AD_NOX/source/compute_residual.cc index 56bfc64b..c496f1f8 100644 --- a/nonlinear-heat_transfer_with_AD_NOX/source/compute_residual.cc +++ b/nonlinear-heat_transfer_with_AD_NOX/source/compute_residual.cc @@ -1,6 +1,13 @@ -/* - * Created by Narasimhan Swaminathan on 20 Jun 2024. -*/ +/* ----------------------------------------------------------------------------- + * + * SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception OR LGPL-2.1-or-later + * Copyright (C) 2024 by Narasimhan Swaminathan + * + * This file is part of the deal.II code gallery. + * + * ----------------------------------------------------------------------------- + */ + #include "allheaders.h" #include "nonlinear_heat.h" /** diff --git a/nonlinear-heat_transfer_with_AD_NOX/source/initial_conditions.cc b/nonlinear-heat_transfer_with_AD_NOX/source/initial_conditions.cc index 31912801..2d7e270d 100644 --- a/nonlinear-heat_transfer_with_AD_NOX/source/initial_conditions.cc +++ b/nonlinear-heat_transfer_with_AD_NOX/source/initial_conditions.cc @@ -1,4 +1,15 @@ +/* ----------------------------------------------------------------------------- + * + * SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception OR LGPL-2.1-or-later + * Copyright (C) 2024 by Narasimhan Swaminathan + * + * This file is part of the deal.II code gallery. + * + * ----------------------------------------------------------------------------- + */ + #include "nonlinear_heat.h" + /** * Returns the initial conditions. * @param p Point diff --git a/nonlinear-heat_transfer_with_AD_NOX/source/nonlinear_heat_cons_des.cc b/nonlinear-heat_transfer_with_AD_NOX/source/nonlinear_heat_cons_des.cc index a4a6f1f5..cdf04d76 100644 --- a/nonlinear-heat_transfer_with_AD_NOX/source/nonlinear_heat_cons_des.cc +++ b/nonlinear-heat_transfer_with_AD_NOX/source/nonlinear_heat_cons_des.cc @@ -1,4 +1,15 @@ +/* ----------------------------------------------------------------------------- + * + * SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception OR LGPL-2.1-or-later + * Copyright (C) 2024 by Narasimhan Swaminathan + * + * This file is part of the deal.II code gallery. + * + * ----------------------------------------------------------------------------- + */ + #include "nonlinear_heat.h" + /** * This is the constructor. All the variables defined in nonlinear_heat.h are * given values here. @@ -15,6 +26,7 @@ nonlinear_heat::nonlinear_heat () dof_handler(triangulation), fe(FE_Q<2>(1), 1) {} + /** * This is the destructor */ diff --git a/nonlinear-heat_transfer_with_AD_NOX/source/output_results.cc b/nonlinear-heat_transfer_with_AD_NOX/source/output_results.cc index 6a19bac4..50b5ca0f 100644 --- a/nonlinear-heat_transfer_with_AD_NOX/source/output_results.cc +++ b/nonlinear-heat_transfer_with_AD_NOX/source/output_results.cc @@ -1,4 +1,15 @@ +/* ----------------------------------------------------------------------------- + * + * SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception OR LGPL-2.1-or-later + * Copyright (C) 2024 by Narasimhan Swaminathan + * + * This file is part of the deal.II code gallery. + * + * ----------------------------------------------------------------------------- + */ + #include "nonlinear_heat.h" + /** * Outputs the results to a vtu file, every #prn step. * @param prn diff --git a/nonlinear-heat_transfer_with_AD_NOX/source/set_boundary_conditions.cc b/nonlinear-heat_transfer_with_AD_NOX/source/set_boundary_conditions.cc index fe3446f5..40d0c44b 100644 --- a/nonlinear-heat_transfer_with_AD_NOX/source/set_boundary_conditions.cc +++ b/nonlinear-heat_transfer_with_AD_NOX/source/set_boundary_conditions.cc @@ -1,5 +1,16 @@ +/* ----------------------------------------------------------------------------- + * + * SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception OR LGPL-2.1-or-later + * Copyright (C) 2024 by Narasimhan Swaminathan + * + * This file is part of the deal.II code gallery. + * + * ----------------------------------------------------------------------------- + */ + #include "nonlinear_heat.h" #include "allheaders.h" + /** * This sets the boundary condition of the problem. * @param time Time (useful, if the boundary condition is time dependent) diff --git a/nonlinear-heat_transfer_with_AD_NOX/source/setup_system.cc b/nonlinear-heat_transfer_with_AD_NOX/source/setup_system.cc index 73045284..a4bb9af4 100644 --- a/nonlinear-heat_transfer_with_AD_NOX/source/setup_system.cc +++ b/nonlinear-heat_transfer_with_AD_NOX/source/setup_system.cc @@ -1,5 +1,16 @@ +/* ----------------------------------------------------------------------------- + * + * SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception OR LGPL-2.1-or-later + * Copyright (C) 2024 by Narasimhan Swaminathan + * + * This file is part of the deal.II code gallery. + * + * ----------------------------------------------------------------------------- + */ + #include "allheaders.h" #include "nonlinear_heat.h" + /** * Sets up the system. * @param time_step diff --git a/nonlinear-heat_transfer_with_AD_NOX/source/solve_and_run.cc b/nonlinear-heat_transfer_with_AD_NOX/source/solve_and_run.cc index 7eff066f..ca370cb4 100644 --- a/nonlinear-heat_transfer_with_AD_NOX/source/solve_and_run.cc +++ b/nonlinear-heat_transfer_with_AD_NOX/source/solve_and_run.cc @@ -1,4 +1,15 @@ +/* ----------------------------------------------------------------------------- + * + * SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception OR LGPL-2.1-or-later + * Copyright (C) 2024 by Narasimhan Swaminathan + * + * This file is part of the deal.II code gallery. + * + * ----------------------------------------------------------------------------- + */ + #include "nonlinear_heat.h" + /** * Solves the linear system, arising during every nonlinear iteration. * @param rhs Right hand side (Residual)