Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add missing copyright headers #18

Merged
merged 2 commits into from
Jan 12, 2024
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
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions tests/cpu_to_gpu.F90
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
! (C) Copyright 2022- ECMWF.
! (C) Copyright 2022- Meteo-France.
!
! This software is licensed under the terms of the Apache Licence Version 2.0
! which can be obtained at http://www.apache.org/licenses/LICENSE-2.0.
! In applying this licence, ECMWF does not waive the privileges and immunities
! granted to it by virtue of its status as an intergovernmental organisation
! nor does it submit to any jurisdiction.

PROGRAM CPU_TO_GPU
!TEST INITIALISING DATA ON CPU THEN MOVING THEM ON GPU

Expand Down
9 changes: 9 additions & 0 deletions tests/cpu_to_gpu_delayed_init_value.F90
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
! (C) Copyright 2022- ECMWF.
! (C) Copyright 2022- Meteo-France.
!
! This software is licensed under the terms of the Apache Licence Version 2.0
! which can be obtained at http://www.apache.org/licenses/LICENSE-2.0.
! In applying this licence, ECMWF does not waive the privileges and immunities
! granted to it by virtue of its status as an intergovernmental organisation
! nor does it submit to any jurisdiction.

PROGRAM CPU_TO_GPU_DELAYED_INIT_VALUE
!TEST THAT DATA OF A FIELD OWNER IS NOT COPIED TO CPU WHEN IT HAS
!BEEN INITIALISED WITH AN INIT VALUE AFTER A DELAYED ALLOCATION, BUT
Expand Down
9 changes: 9 additions & 0 deletions tests/cpu_to_gpu_init_value.F90
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
! (C) Copyright 2022- ECMWF.
! (C) Copyright 2022- Meteo-France.
!
! This software is licensed under the terms of the Apache Licence Version 2.0
! which can be obtained at http://www.apache.org/licenses/LICENSE-2.0.
! In applying this licence, ECMWF does not waive the privileges and immunities
! granted to it by virtue of its status as an intergovernmental organisation
! nor does it submit to any jurisdiction.

PROGRAM CPU_TO_GPU_INIT_VALUE
!TEST THAT DATA OF A FIELD OWNER IS NOT COPIED TO CPU WHEN IT HAS
!BEEN INITIALISED WITH AN INIT VALUE, BUT
Expand Down
9 changes: 9 additions & 0 deletions tests/gather_scatter.F90
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
! (C) Copyright 2022- ECMWF.
! (C) Copyright 2022- Meteo-France.
!
! This software is licensed under the terms of the Apache Licence Version 2.0
! which can be obtained at http://www.apache.org/licenses/LICENSE-2.0.
! In applying this licence, ECMWF does not waive the privileges and immunities
! granted to it by virtue of its status as an intergovernmental organisation
! nor does it submit to any jurisdiction.

PROGRAM GATHER_SCATTER
!TEST THAT FIELD_GATHSCAT ONLY MODIFY VALUES THAT HAVE BEEN FILTERED
USE FIELD_MODULE
Expand Down
9 changes: 9 additions & 0 deletions tests/get_view_get_device_data.F90
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
! (C) Copyright 2022- ECMWF.
! (C) Copyright 2022- Meteo-France.
!
! This software is licensed under the terms of the Apache Licence Version 2.0
! which can be obtained at http://www.apache.org/licenses/LICENSE-2.0.
! In applying this licence, ECMWF does not waive the privileges and immunities
! granted to it by virtue of its status as an intergovernmental organisation
! nor does it submit to any jurisdiction.

PROGRAM GET_VIEW_GET_DEVICE_DATA
!CHECK THAT DATA MODIFIED WITH A POINTER RETRIEVED FROM GET_VIEW ARE
!TRANSFERED TO THE GPU
Expand Down
9 changes: 9 additions & 0 deletions tests/init_owner_delayed_gpu.F90
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
! (C) Copyright 2022- ECMWF.
! (C) Copyright 2022- Meteo-France.
!
! This software is licensed under the terms of the Apache Licence Version 2.0
! which can be obtained at http://www.apache.org/licenses/LICENSE-2.0.
! In applying this licence, ECMWF does not waive the privileges and immunities
! granted to it by virtue of its status as an intergovernmental organisation
! nor does it submit to any jurisdiction.

PROGRAM INIT_OWNER_DELAYED_GPU
!TEST IF DELAYED ALLOCATION IS WORKING ON GPU

Expand Down
9 changes: 9 additions & 0 deletions tests/init_owner_delayed_init_debug_value.F90
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
! (C) Copyright 2022- ECMWF.
! (C) Copyright 2022- Meteo-France.
!
! This software is licensed under the terms of the Apache Licence Version 2.0
! which can be obtained at http://www.apache.org/licenses/LICENSE-2.0.
! In applying this licence, ECMWF does not waive the privileges and immunities
! granted to it by virtue of its status as an intergovernmental organisation
! nor does it submit to any jurisdiction.

PROGRAM INIT_OWNER_DELAYED_INIT_DEBUG_VALUE
!TEST THAT ALL DATA ARE INITIALIZE TO THE CHOOSEN VALUE
USE FIELD_MODULE
Expand Down
9 changes: 9 additions & 0 deletions tests/init_owner_delayed_init_value.F90
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
! (C) Copyright 2022- ECMWF.
! (C) Copyright 2022- Meteo-France.
!
! This software is licensed under the terms of the Apache Licence Version 2.0
! which can be obtained at http://www.apache.org/licenses/LICENSE-2.0.
! In applying this licence, ECMWF does not waive the privileges and immunities
! granted to it by virtue of its status as an intergovernmental organisation
! nor does it submit to any jurisdiction.

PROGRAM INIT_OWNER_DELAYED_INIT_VALUE
!TEST THAT ALL DATA ARE INITIALIZE TO THE CHOOSEN VALUE
USE FIELD_MODULE
Expand Down
9 changes: 9 additions & 0 deletions tests/init_owner_init_debug_value.F90
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
! (C) Copyright 2022- ECMWF.
! (C) Copyright 2022- Meteo-France.
!
! This software is licensed under the terms of the Apache Licence Version 2.0
! which can be obtained at http://www.apache.org/licenses/LICENSE-2.0.
! In applying this licence, ECMWF does not waive the privileges and immunities
! granted to it by virtue of its status as an intergovernmental organisation
! nor does it submit to any jurisdiction.

PROGRAM INIT_OWNER_INIT_DEBUG_VALUE
!TEST THAT ALL DATA ARE INITIALIZE TO THE DEBUG VALUE CHOOSED BY THE
!USER
Expand Down
9 changes: 9 additions & 0 deletions tests/init_owner_init_debug_value_gpu.F90
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
! (C) Copyright 2022- ECMWF.
! (C) Copyright 2022- Meteo-France.
!
! This software is licensed under the terms of the Apache Licence Version 2.0
! which can be obtained at http://www.apache.org/licenses/LICENSE-2.0.
! In applying this licence, ECMWF does not waive the privileges and immunities
! granted to it by virtue of its status as an intergovernmental organisation
! nor does it submit to any jurisdiction.

PROGRAM INIT_OWNER_INIT_DEBUG_VALUE_GPU
!TEST THAT ALL DATA ARE INITIALIZED TO THE DEBUG VALUE CHOOSED BY THE
!USER ON GPU
Expand Down
9 changes: 9 additions & 0 deletions tests/init_owner_init_delayed_debug_value_gpu.F90
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
! (C) Copyright 2022- ECMWF.
! (C) Copyright 2022- Meteo-France.
!
! This software is licensed under the terms of the Apache Licence Version 2.0
! which can be obtained at http://www.apache.org/licenses/LICENSE-2.0.
! In applying this licence, ECMWF does not waive the privileges and immunities
! granted to it by virtue of its status as an intergovernmental organisation
! nor does it submit to any jurisdiction.

PROGRAM INIT_OWNER_INIT_DELAYED_DEBUG_VALUE_GPU
!TEST THAT ALL DATA ARE INITIALIZED TO THE DEBUG VALUE CHOOSED BY THE
!USER WHEN COMBINED WITH DELAYED ALLOCATION ON GPU
Expand Down
9 changes: 9 additions & 0 deletions tests/init_owner_init_delayed_value_gpu.F90
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
! (C) Copyright 2022- ECMWF.
! (C) Copyright 2022- Meteo-France.
!
! This software is licensed under the terms of the Apache Licence Version 2.0
! which can be obtained at http://www.apache.org/licenses/LICENSE-2.0.
! In applying this licence, ECMWF does not waive the privileges and immunities
! granted to it by virtue of its status as an intergovernmental organisation
! nor does it submit to any jurisdiction.

PROGRAM INIT_OWNER_INIT_DELAYED_VALUE_GPU
!TEST THAT ALL DATA ARE INITIALIZED TO THE VALUE CHOOSED BY THE USER
!WHEN COMBINED WITH DELAYED ALLOCATION ON GPU
Expand Down
9 changes: 9 additions & 0 deletions tests/init_owner_init_value.F90
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
! (C) Copyright 2022- ECMWF.
! (C) Copyright 2022- Meteo-France.
!
! This software is licensed under the terms of the Apache Licence Version 2.0
! which can be obtained at http://www.apache.org/licenses/LICENSE-2.0.
! In applying this licence, ECMWF does not waive the privileges and immunities
! granted to it by virtue of its status as an intergovernmental organisation
! nor does it submit to any jurisdiction.

PROGRAM INIT_OWNER_INIT_VALUE
!TEST THAT ALL DATA ARE INITIALIZE TO THE CHOOSEN VALUE
USE FIELD_MODULE
Expand Down
6 changes: 5 additions & 1 deletion tests/main.F90
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,15 @@
! granted to it by virtue of its status as an intergovernmental organisation
! nor does it submit to any jurisdiction.

PROGRAM MAIN

USE FIELD_MODULE
USE PARKIND1

IMPLICIT NONE

INTEGER (KIND=JPIM) :: NFLEVG, NPROMA, NGPBLKS
INTEGER (KIND=JPIM) :: JBLK,JLEV,JLON,I

REAL (KIND=JPRB), ALLOCATABLE :: ZDATA3 (:,:,:)
TYPE (FIELD_3RB_WRAPPER), POINTER :: YLF3
Expand Down Expand Up @@ -105,4 +109,4 @@

CALL YLF4%FINAL

END
END PROGRAM
9 changes: 9 additions & 0 deletions tests/no_transfer_get_device.F90
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
! (C) Copyright 2022- ECMWF.
! (C) Copyright 2022- Meteo-France.
!
! This software is licensed under the terms of the Apache Licence Version 2.0
! which can be obtained at http://www.apache.org/licenses/LICENSE-2.0.
! In applying this licence, ECMWF does not waive the privileges and immunities
! granted to it by virtue of its status as an intergovernmental organisation
! nor does it submit to any jurisdiction.

PROGRAM NO_TRANSFER
!TEST THAT DATA OF A FIELD OWNER IS NOT COPIED TO GPU WHEN THEY HAVE NOT
!BEEN INITIALISED FIRST ON CPU
Expand Down
9 changes: 9 additions & 0 deletions tests/no_transfer_get_host.F90
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
! (C) Copyright 2022- ECMWF.
! (C) Copyright 2022- Meteo-France.
!
! This software is licensed under the terms of the Apache Licence Version 2.0
! which can be obtained at http://www.apache.org/licenses/LICENSE-2.0.
! In applying this licence, ECMWF does not waive the privileges and immunities
! granted to it by virtue of its status as an intergovernmental organisation
! nor does it submit to any jurisdiction.

PROGRAM NO_TRANSFER
!TEST THAT DATA OF A FIELD OWNER IS NOT COPIED TO CPU WHEN THEY HAVE NOT
!BEEN INITIALISED FIRST ON CPU OR GPU
Expand Down