From 58786b79ff9a6e968412ad6b8f8c783ee9bc9f98 Mon Sep 17 00:00:00 2001 From: Alec Hammond Date: Tue, 2 Jul 2024 15:37:17 -0700 Subject: [PATCH] add copyright (#15) * add copyright * Update benchmark/grating_coupler.jl Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> --------- Co-authored-by: Alec Hammond Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> --- benchmark/benchmark_utils.jl | 2 +- benchmark/dipole.jl | 2 +- benchmark/directional_coupler.jl | 2 +- benchmark/grating_coupler.jl | 2 +- benchmark/metalens.jl | 2 +- benchmark/periodic_stack.jl | 2 +- benchmark/run_benchmarks.jl | 2 +- benchmark/sphere.jl | 2 +- examples/dipole.jl | 2 +- examples/gaussian_beam.jl | 2 +- examples/periodic_slab.jl | 2 +- examples/planewave.jl | 2 +- examples/sphere.jl | 2 +- examples/waveguide.jl | 2 +- src/Boundaries.jl | 2 +- src/DFT.jl | 1 - src/DataStructures.jl | 8 +------- src/Fields.jl | 2 +- src/Geometry.jl | 2 +- src/Khronos.jl | 2 +- src/Mode.jl | 2 +- src/Monitors.jl | 2 +- src/Simulation.jl | 2 +- src/Sources/Sources.jl | 2 +- src/Sources/SpatialSources.jl | 2 +- src/Sources/TimeSources.jl | 2 +- src/Timestep.jl | 2 +- src/Visualization.jl | 2 +- src/load_deps.jl | 2 +- src/utils.jl | 2 +- test/runtests.jl | 2 +- test/test_grid_volume.jl | 2 +- test/test_interpolation.jl | 2 +- test/test_materials.jl | 2 +- test/test_mode.jl | 2 +- test/test_sources.jl | 2 +- test/test_timestep.jl | 2 +- test/test_visualization.jl | 2 +- test/test_volumes.jl | 2 +- 39 files changed, 38 insertions(+), 45 deletions(-) delete mode 100644 src/DFT.jl diff --git a/benchmark/benchmark_utils.jl b/benchmark/benchmark_utils.jl index fc72fcb..f9c558c 100644 --- a/benchmark/benchmark_utils.jl +++ b/benchmark/benchmark_utils.jl @@ -1,4 +1,4 @@ -# (c) Meta Platforms, Inc. and affiliates. Confidential and proprietary. +# Copyright (c) Meta Platforms, Inc. and affiliates. module BenchmarkUtils diff --git a/benchmark/dipole.jl b/benchmark/dipole.jl index d669bd1..0cb8b8f 100644 --- a/benchmark/dipole.jl +++ b/benchmark/dipole.jl @@ -1,4 +1,4 @@ -# (c) Meta Platforms, Inc. and affiliates. Confidential and proprietary. +# Copyright (c) Meta Platforms, Inc. and affiliates. # import YAML import Khronos diff --git a/benchmark/directional_coupler.jl b/benchmark/directional_coupler.jl index 6dafa9c..71ca4b1 100644 --- a/benchmark/directional_coupler.jl +++ b/benchmark/directional_coupler.jl @@ -1 +1 @@ -# (c) Meta Platforms, Inc. and affiliates. Confidential and proprietary. +# Copyright (c) Meta Platforms, Inc. and affiliates. diff --git a/benchmark/grating_coupler.jl b/benchmark/grating_coupler.jl index 6dafa9c..71ca4b1 100644 --- a/benchmark/grating_coupler.jl +++ b/benchmark/grating_coupler.jl @@ -1 +1 @@ -# (c) Meta Platforms, Inc. and affiliates. Confidential and proprietary. +# Copyright (c) Meta Platforms, Inc. and affiliates. diff --git a/benchmark/metalens.jl b/benchmark/metalens.jl index 58acc1d..2422e44 100644 --- a/benchmark/metalens.jl +++ b/benchmark/metalens.jl @@ -1,4 +1,4 @@ -# (c) Meta Platforms, Inc. and affiliates. Confidential and proprietary. +# Copyright (c) Meta Platforms, Inc. and affiliates. # # Metalens as described in https://github.com/flexcompute/metalens/blob/main/Metalens_Optimize.py diff --git a/benchmark/periodic_stack.jl b/benchmark/periodic_stack.jl index 7f4979d..0c8bae3 100644 --- a/benchmark/periodic_stack.jl +++ b/benchmark/periodic_stack.jl @@ -1,4 +1,4 @@ -# (c) Meta Platforms, Inc. and affiliates. Confidential and proprietary. +# Copyright (c) Meta Platforms, Inc. and affiliates. # import YAML import Khronos diff --git a/benchmark/run_benchmarks.jl b/benchmark/run_benchmarks.jl index 69997a2..07b7e4e 100644 --- a/benchmark/run_benchmarks.jl +++ b/benchmark/run_benchmarks.jl @@ -1,4 +1,4 @@ -# (c) Meta Platforms, Inc. and affiliates. Confidential and proprietary. +# Copyright (c) Meta Platforms, Inc. and affiliates. using CUDA diff --git a/benchmark/sphere.jl b/benchmark/sphere.jl index df0b4cb..67250d8 100644 --- a/benchmark/sphere.jl +++ b/benchmark/sphere.jl @@ -1,4 +1,4 @@ -# (c) Meta Platforms, Inc. and affiliates. Confidential and proprietary. +# Copyright (c) Meta Platforms, Inc. and affiliates. # import YAML import Khronos diff --git a/examples/dipole.jl b/examples/dipole.jl index a748214..319491f 100644 --- a/examples/dipole.jl +++ b/examples/dipole.jl @@ -1,4 +1,4 @@ -# (c) Meta Platforms, Inc. and affiliates. +# Copyright (c) Meta Platforms, Inc. and affiliates. # # Simulate a dipole in vacuum. diff --git a/examples/gaussian_beam.jl b/examples/gaussian_beam.jl index ba2288c..433656a 100644 --- a/examples/gaussian_beam.jl +++ b/examples/gaussian_beam.jl @@ -1,4 +1,4 @@ -# (c) Meta Platforms, Inc. and affiliates. +# Copyright (c) Meta Platforms, Inc. and affiliates. # # Inject an oblique Gaussian beam and plot its response. diff --git a/examples/periodic_slab.jl b/examples/periodic_slab.jl index ccbe248..598fe1b 100644 --- a/examples/periodic_slab.jl +++ b/examples/periodic_slab.jl @@ -1,4 +1,4 @@ -# (c) Meta Platforms, Inc. and affiliates. +# Copyright (c) Meta Platforms, Inc. and affiliates. # # Using DFT monitors, compute the transmission of a planewave in 3D through a # simple slab structure. Compare the computed response to the analytic response. diff --git a/examples/planewave.jl b/examples/planewave.jl index 1e4daf1..c5f96e5 100644 --- a/examples/planewave.jl +++ b/examples/planewave.jl @@ -1,4 +1,4 @@ -# (c) Meta Platforms, Inc. and affiliates. Confidential and proprietary. +# Copyright (c) Meta Platforms, Inc. and affiliates. # # Simulate the propagation of a planewave in a homogeonous medium. diff --git a/examples/sphere.jl b/examples/sphere.jl index b8dc0bd..fd6b19a 100644 --- a/examples/sphere.jl +++ b/examples/sphere.jl @@ -1,4 +1,4 @@ -# (c) Meta Platforms, Inc. and affiliates. +# Copyright (c) Meta Platforms, Inc. and affiliates. # # Simulate the scattering of a planewave off of a conductive sphere. diff --git a/examples/waveguide.jl b/examples/waveguide.jl index 506bc8c..9dd6a13 100644 --- a/examples/waveguide.jl +++ b/examples/waveguide.jl @@ -1,4 +1,4 @@ -# (c) Meta Platforms, Inc. and affiliates. +# Copyright (c) Meta Platforms, Inc. and affiliates. # # Excitation of a dielectric waveguide using a mode source. diff --git a/src/Boundaries.jl b/src/Boundaries.jl index 9643ac9..c145ca6 100644 --- a/src/Boundaries.jl +++ b/src/Boundaries.jl @@ -1,4 +1,4 @@ -# (c) Meta Platforms, Inc. and affiliates. +# Copyright (c) Meta Platforms, Inc. and affiliates. abstract type Boundary end diff --git a/src/DFT.jl b/src/DFT.jl deleted file mode 100644 index 8b13789..0000000 --- a/src/DFT.jl +++ /dev/null @@ -1 +0,0 @@ - diff --git a/src/DataStructures.jl b/src/DataStructures.jl index 76ad6e6..5128537 100644 --- a/src/DataStructures.jl +++ b/src/DataStructures.jl @@ -1,10 +1,4 @@ -# (c) Meta Platforms, Inc. and affiliates. - -""" - -TODO -* `Field` and `Fields` are really confusing... -""" +# Copyright (c) Meta Platforms, Inc. and affiliates. # -------------------------------------------------------- # # diff --git a/src/Fields.jl b/src/Fields.jl index b1701c5..6e29ae6 100644 --- a/src/Fields.jl +++ b/src/Fields.jl @@ -1,4 +1,4 @@ -# (c) Meta Platforms, Inc. and affiliates. +# Copyright (c) Meta Platforms, Inc. and affiliates. # -------------------------------------------------------------------------- # # General field array utility functions diff --git a/src/Geometry.jl b/src/Geometry.jl index 0f468bb..42818fb 100644 --- a/src/Geometry.jl +++ b/src/Geometry.jl @@ -1,4 +1,4 @@ -# (c) Meta Platforms, Inc. and affiliates. +# Copyright (c) Meta Platforms, Inc. and affiliates. # # Contains all relevant functions for manipulating geometry. # diff --git a/src/Khronos.jl b/src/Khronos.jl index 83e7a37..d2cf26c 100644 --- a/src/Khronos.jl +++ b/src/Khronos.jl @@ -1,4 +1,4 @@ -# (c) Meta Platforms, Inc. and affiliates. +# Copyright (c) Meta Platforms, Inc. and affiliates. module Khronos diff --git a/src/Mode.jl b/src/Mode.jl index ffd1c3c..d31f2dc 100644 --- a/src/Mode.jl +++ b/src/Mode.jl @@ -1,4 +1,4 @@ -# (c) Meta Platforms, Inc. and affiliates. +# Copyright (c) Meta Platforms, Inc. and affiliates. # # Functions involving mode calculations (e.g. modes sources, mode overlaps) diff --git a/src/Monitors.jl b/src/Monitors.jl index 2f91c82..2e150eb 100644 --- a/src/Monitors.jl +++ b/src/Monitors.jl @@ -1,4 +1,4 @@ -# (c) Meta Platforms, Inc. and affiliates. Confidential and proprietary. +# Copyright (c) Meta Platforms, Inc. and affiliates. """ Monitors.jl diff --git a/src/Simulation.jl b/src/Simulation.jl index cfb0a86..713e0a6 100644 --- a/src/Simulation.jl +++ b/src/Simulation.jl @@ -1,4 +1,4 @@ -# (c) Meta Platforms, Inc. and affiliates. +# Copyright (c) Meta Platforms, Inc. and affiliates. export prepare_simulation!, run, run_until, stop_when_dft_decayed, run_benchmark diff --git a/src/Sources/Sources.jl b/src/Sources/Sources.jl index 569262d..1a02da8 100644 --- a/src/Sources/Sources.jl +++ b/src/Sources/Sources.jl @@ -1,4 +1,4 @@ -# (c) Meta Platforms, Inc. and affiliates. +# Copyright (c) Meta Platforms, Inc. and affiliates. include("./TimeSources.jl") include("./SpatialSources.jl") diff --git a/src/Sources/SpatialSources.jl b/src/Sources/SpatialSources.jl index a0dbcb0..d9bbe30 100644 --- a/src/Sources/SpatialSources.jl +++ b/src/Sources/SpatialSources.jl @@ -1,4 +1,4 @@ -# (c) Meta Platforms, Inc. and affiliates. +# Copyright (c) Meta Platforms, Inc. and affiliates. # # Here live the various functions and routines needed to implement a source that # is spatially varying. Importantly, all spatially varying sources take as one diff --git a/src/Sources/TimeSources.jl b/src/Sources/TimeSources.jl index ed7787b..c430643 100644 --- a/src/Sources/TimeSources.jl +++ b/src/Sources/TimeSources.jl @@ -1,4 +1,4 @@ -# (c) Meta Platforms, Inc. and affiliates. +# Copyright (c) Meta Platforms, Inc. and affiliates. export ContinuousWaveSource, GaussianPulseSource diff --git a/src/Timestep.jl b/src/Timestep.jl index dddfd39..5ec94be 100644 --- a/src/Timestep.jl +++ b/src/Timestep.jl @@ -1,4 +1,4 @@ -# (c) Meta Platforms, Inc. and affiliates. +# Copyright (c) Meta Platforms, Inc. and affiliates. # # Here lie the core timestepping kernels for the FDTD algorithm. Thanks to # multiple dispatch, we can simply focus on the fundamental (most complicated) diff --git a/src/Visualization.jl b/src/Visualization.jl index 6dacb90..47c629d 100644 --- a/src/Visualization.jl +++ b/src/Visualization.jl @@ -1,4 +1,4 @@ -# (c) Meta Platforms, Inc. and affiliates. +# Copyright (c) Meta Platforms, Inc. and affiliates. # # Functions to visualize the simulation domain, spatial/temporal source # profiles, and monitor data. diff --git a/src/load_deps.jl b/src/load_deps.jl index 90e9bee..f75e49a 100644 --- a/src/load_deps.jl +++ b/src/load_deps.jl @@ -1,4 +1,4 @@ -# (c) Meta Platforms, Inc. and affiliates. +# Copyright (c) Meta Platforms, Inc. and affiliates. # # Handle all of the backend loading. using CUDA diff --git a/src/utils.jl b/src/utils.jl index f454e03..53aa0f2 100644 --- a/src/utils.jl +++ b/src/utils.jl @@ -1,4 +1,4 @@ -# (c) Meta Platforms, Inc. and affiliates. +# Copyright (c) Meta Platforms, Inc. and affiliates. """ get_direction_index(direction) diff --git a/test/runtests.jl b/test/runtests.jl index 7cd4220..24910f6 100644 --- a/test/runtests.jl +++ b/test/runtests.jl @@ -1,4 +1,4 @@ -# (c) Meta Platforms, Inc. and affiliates. +# Copyright (c) Meta Platforms, Inc. and affiliates. using Test diff --git a/test/test_grid_volume.jl b/test/test_grid_volume.jl index 031cca1..c71a593 100644 --- a/test/test_grid_volume.jl +++ b/test/test_grid_volume.jl @@ -1,4 +1,4 @@ -# (c) Meta Platforms, Inc. and affiliates. Confidential and proprietary. +# Copyright (c) Meta Platforms, Inc. and affiliates. import Khronos using Test diff --git a/test/test_interpolation.jl b/test/test_interpolation.jl index 41fe837..691e9da 100644 --- a/test/test_interpolation.jl +++ b/test/test_interpolation.jl @@ -1,4 +1,4 @@ -# (c) Meta Platforms, Inc. and affiliates. +# Copyright (c) Meta Platforms, Inc. and affiliates. # test the interpolation and restriction functions inside utils.jl. these are # primarily used to create monitor and source regions, where interpolation and diff --git a/test/test_materials.jl b/test/test_materials.jl index 20a80fa..cc59f52 100644 --- a/test/test_materials.jl +++ b/test/test_materials.jl @@ -1,4 +1,4 @@ -# (c) Meta Platforms, Inc. and affiliates. +# Copyright (c) Meta Platforms, Inc. and affiliates. # # Test the functionality of all the material functions. diff --git a/test/test_mode.jl b/test/test_mode.jl index 6391fbd..81baa66 100644 --- a/test/test_mode.jl +++ b/test/test_mode.jl @@ -1,4 +1,4 @@ -# (c) Meta Platforms, Inc. and affiliates. +# Copyright (c) Meta Platforms, Inc. and affiliates. # # Test the functionality of the mode functions diff --git a/test/test_sources.jl b/test/test_sources.jl index 9178f9f..0b8b6b5 100644 --- a/test/test_sources.jl +++ b/test/test_sources.jl @@ -1,4 +1,4 @@ -# (c) Meta Platforms, Inc. and affiliates. +# Copyright (c) Meta Platforms, Inc. and affiliates. # # Test the functionality of all the sources. diff --git a/test/test_timestep.jl b/test/test_timestep.jl index 9cea09d..ad0bfaf 100644 --- a/test/test_timestep.jl +++ b/test/test_timestep.jl @@ -1,4 +1,4 @@ -# (c) Meta Platforms, Inc. and affiliates. Confidential and proprietary. +# Copyright (c) Meta Platforms, Inc. and affiliates. import Khronos using Test diff --git a/test/test_visualization.jl b/test/test_visualization.jl index 8adf21a..d8c2a49 100644 --- a/test/test_visualization.jl +++ b/test/test_visualization.jl @@ -1,4 +1,4 @@ -# (c) Meta Platforms, Inc. and affiliates. +# Copyright (c) Meta Platforms, Inc. and affiliates. # # Test the functionality of all the sources. diff --git a/test/test_volumes.jl b/test/test_volumes.jl index d6bb868..28490b3 100644 --- a/test/test_volumes.jl +++ b/test/test_volumes.jl @@ -1,4 +1,4 @@ -# (c) Meta Platforms, Inc. and affiliates. Confidential and proprietary. +# Copyright (c) Meta Platforms, Inc. and affiliates. # test the Volume() and GridVolume() functionality.