-
Notifications
You must be signed in to change notification settings - Fork 89
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixes spikes when importing fractures in parallel (#3020)
- Loading branch information
Showing
6 changed files
with
439 additions
and
133 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
35 changes: 35 additions & 0 deletions
35
src/coreComponents/codingUtilities/tests/testUtilities.cpp
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,35 @@ | ||
/* | ||
* ------------------------------------------------------------------------------------------------------------ | ||
* SPDX-License-Identifier: LGPL-2.1-only | ||
* | ||
* Copyright (c) 2018-2020 Lawrence Livermore National Security LLC | ||
* Copyright (c) 2018-2020 The Board of Trustees of the Leland Stanford Junior University | ||
* Copyright (c) 2018-2020 TotalEnergies | ||
* Copyright (c) 2019- GEOSX Contributors | ||
* All rights reserved | ||
* | ||
* See top level LICENSE, COPYRIGHT, CONTRIBUTORS, NOTICE, and ACKNOWLEDGEMENTS files for details. | ||
* ------------------------------------------------------------------------------------------------------------ | ||
*/ | ||
|
||
#include "codingUtilities/Utilities.hpp" | ||
|
||
#include <gtest/gtest.h> | ||
|
||
#include <map> | ||
|
||
using namespace geos; | ||
|
||
TEST( Utilities, MapExtraction ) | ||
{ | ||
std::map< string, int > const m{ | ||
{ "k0", 0 }, | ||
{ "k1", 1 }, | ||
{ "k2", 2 } | ||
}; | ||
|
||
EXPECT_EQ( mapKeys( m ), std::vector< string >( { "k0", "k1", "k2" } ) ); | ||
EXPECT_EQ( mapKeys< std::set >( m ), std::set< string >( { "k0", "k1", "k2" } ) ); | ||
EXPECT_EQ( mapValues( m ), std::vector< int >( { 0, 1, 2 } ) ); | ||
EXPECT_EQ( mapValues< std::set >( m ), std::set< int >( { 0, 1, 2 } ) ); | ||
} |
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
Oops, something went wrong.