-
Notifications
You must be signed in to change notification settings - Fork 42
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* hotfix/0.13.1: Version 0.13.1 ATLAS-151 Split fctest_mesh in separate files to workaround intel 18.0 internal compiler error ATLAS-151 Disable 2 Fortran tests that don't compile with ifort 18.0.0.033 ATLAS-150 Fix preprocessor commands ATLAS-150 some updates for latest GT release
- Loading branch information
Showing
16 changed files
with
504 additions
and
360 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,65 @@ | ||
! (C) Copyright 2013 ECMWF. | ||
! 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. | ||
|
||
! This File contains Unit Tests for testing the | ||
! C++ / Fortran Interfaces to the State Datastructure | ||
! @author Willem Deconinck | ||
|
||
#include "fckit/fctest.h" | ||
|
||
! ----------------------------------------------------------------------------- | ||
|
||
module fcta_Field_fxt | ||
use atlas_module | ||
use, intrinsic :: iso_c_binding | ||
implicit none | ||
|
||
contains | ||
|
||
end module | ||
|
||
! ----------------------------------------------------------------------------- | ||
|
||
TESTSUITE_WITH_FIXTURE(fcta_Field,fcta_Field_fxt) | ||
|
||
! ----------------------------------------------------------------------------- | ||
|
||
TESTSUITE_INIT | ||
call atlas_init() | ||
END_TESTSUITE_INIT | ||
|
||
! ----------------------------------------------------------------------------- | ||
|
||
TESTSUITE_FINALIZE | ||
call atlas_finalise() | ||
END_TESTSUITE_FINALIZE | ||
|
||
! ----------------------------------------------------------------------------- | ||
|
||
TEST( test_host_data ) | ||
type(atlas_Field) :: field | ||
real(8), pointer :: host(:,:) | ||
real(8), pointer :: device(:,:) | ||
|
||
field = atlas_Field(kind=atlas_real(8),shape=[10,5]) | ||
|
||
call field%host_data(host) | ||
|
||
FCTEST_CHECK( .not. field%host_needs_update() ) | ||
FCTEST_CHECK( .not. field%device_needs_update() ) | ||
|
||
call field%clone_to_device() | ||
FCTEST_CHECK( .not. field%device_needs_update() ) | ||
|
||
call field%final() | ||
END_TEST | ||
|
||
|
||
! ----------------------------------------------------------------------------- | ||
|
||
END_TESTSUITE | ||
|
Oops, something went wrong.