From: Matthias Maier Date: Fri, 26 Jul 2024 07:28:36 +0000 (-0500) Subject: nonlinear-heat_transfer_with_AD_NOX: add copyright notices and license X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2b259b0e370795f8cc3de698397ad3158d234aa2;p=code-gallery.git nonlinear-heat_transfer_with_AD_NOX: add copyright notices and license --- diff --git a/nonlinear-heat_transfer_with_AD_NOX/include/allheaders.h b/nonlinear-heat_transfer_with_AD_NOX/include/allheaders.h index 32e9583..cb77bb6 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 05fb169..dbfe412 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 0000000..cf00bf9 --- /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 ce946da..92e0fb4 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 4facac4..954a200 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 4670269..05d359d 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 56bfc64..c496f1f 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 3191280..2d7e270 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 a4a6f1f..cdf04d7 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 6a19bac..50b5ca0 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 fe3446f..40d0c44 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 7304528..a4bb9af 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 7eff066..ca370cb 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)