Skip to content

Commit b9ffad2

Browse files
committed
reduce comephore cache and logs
1 parent 108e606 commit b9ffad2

File tree

3 files changed

+9
-1
lines changed

3 files changed

+9
-1
lines changed

src/core/data/reosgriddeddata.cpp

+4
Original file line numberDiff line numberDiff line change
@@ -471,7 +471,11 @@ void ReosSeriesFromGriddedDataOnWatershed::preCalculate() const
471471
{
472472
int count = valueCount();
473473
for ( int i = 0; i < count; ++i )
474+
{
474475
valueAt( i );
476+
if ( i % 1000 == 0 )
477+
std::cout << "Timestep: " << i << " / " << count << std::endl;
478+
}
475479
}
476480

477481
void ReosSeriesFromGriddedDataOnWatershed::updateData() const

src/core/rainfall/reosseriesrainfall.cpp

+4
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,11 @@ void ReosSeriesRainfallFromGriddedOnWatershed::preCalculate() const
115115
{
116116
int count = valueCount();
117117
for ( int i = 0; i < count; ++i )
118+
{
118119
valueAt( i );
120+
if ( i % 100 == 0 )
121+
std::cout << "Timestep: " << i << " / " << count << std::endl;
122+
}
119123
}
120124

121125
void ReosSeriesRainfallFromGriddedOnWatershed::updateData() const

src/dataProviders/comephore/reoscomephoreprovider.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ REOSEXTERN ReosDataProviderFactory *providerFactory()
2828

2929
ReosComephoreProvider::ReosComephoreProvider()
3030
{
31-
mCache.setMaxCost( 20000000 );
31+
mCache.setMaxCost( 2000000 );
3232
}
3333

3434
ReosGriddedRainfallProvider *ReosComephoreProvider::clone() const

0 commit comments

Comments
 (0)