Skip to content

Commit

Permalink
reduce comephore cache and logs
Browse files Browse the repository at this point in the history
  • Loading branch information
vcloarec committed Oct 11, 2024
1 parent 108e606 commit b9ffad2
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 1 deletion.
4 changes: 4 additions & 0 deletions src/core/data/reosgriddeddata.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -471,7 +471,11 @@ void ReosSeriesFromGriddedDataOnWatershed::preCalculate() const
{
int count = valueCount();
for ( int i = 0; i < count; ++i )
{
valueAt( i );
if ( i % 1000 == 0 )
std::cout << "Timestep: " << i << " / " << count << std::endl;
}
}

void ReosSeriesFromGriddedDataOnWatershed::updateData() const
Expand Down
4 changes: 4 additions & 0 deletions src/core/rainfall/reosseriesrainfall.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,11 @@ void ReosSeriesRainfallFromGriddedOnWatershed::preCalculate() const
{
int count = valueCount();
for ( int i = 0; i < count; ++i )
{
valueAt( i );
if ( i % 100 == 0 )
std::cout << "Timestep: " << i << " / " << count << std::endl;
}
}

void ReosSeriesRainfallFromGriddedOnWatershed::updateData() const
Expand Down
2 changes: 1 addition & 1 deletion src/dataProviders/comephore/reoscomephoreprovider.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ REOSEXTERN ReosDataProviderFactory *providerFactory()

ReosComephoreProvider::ReosComephoreProvider()
{
mCache.setMaxCost( 20000000 );
mCache.setMaxCost( 2000000 );
}

ReosGriddedRainfallProvider *ReosComephoreProvider::clone() const
Expand Down

0 comments on commit b9ffad2

Please sign in to comment.