mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
GitHub Actions: Add apt mirror to make package download more robust
- Download of Ubuntu packages from Azure is unstable. Add mirror sites to improve reliability. - Improve use of clang-format and include source code changes
This commit is contained in:
@@ -22,8 +22,6 @@
|
||||
|
||||
#include <QString>
|
||||
|
||||
|
||||
|
||||
namespace RiaDefines
|
||||
{
|
||||
QString leakoffPressureDropResultName();
|
||||
|
||||
@@ -30,9 +30,9 @@ class RicMswSegmentCellIntersection
|
||||
{
|
||||
public:
|
||||
RicMswSegmentCellIntersection( const QString& gridName, // Pass in empty string for main grid
|
||||
size_t globalCellIndex,
|
||||
const cvf::Vec3st& gridLocalCellIJK,
|
||||
const cvf::Vec3d& lengthsInCell );
|
||||
size_t globalCellIndex,
|
||||
const cvf::Vec3st& gridLocalCellIJK,
|
||||
const cvf::Vec3d& lengthsInCell );
|
||||
const QString& gridName() const;
|
||||
size_t globalCellIndex() const;
|
||||
cvf::Vec3st gridLocalCellIJK() const;
|
||||
|
||||
@@ -117,10 +117,11 @@ public:
|
||||
|
||||
int priority() const
|
||||
{
|
||||
return type == RigCompletionData::CompletionType::FRACTURE ? 1
|
||||
: type == RigCompletionData::CompletionType::FISHBONES ? 2
|
||||
: type == RigCompletionData::CompletionType::PERFORATION ? 3
|
||||
: 4;
|
||||
return type == RigCompletionData::CompletionType::FRACTURE
|
||||
? 1
|
||||
: type == RigCompletionData::CompletionType::FISHBONES
|
||||
? 2
|
||||
: type == RigCompletionData::CompletionType::PERFORATION ? 3 : 4;
|
||||
}
|
||||
|
||||
// Sort by priority, then name, then number
|
||||
|
||||
@@ -23,7 +23,6 @@
|
||||
#include <limits>
|
||||
#include <utility>
|
||||
#include <vector>
|
||||
#include <limits>
|
||||
|
||||
#include <QString>
|
||||
|
||||
|
||||
@@ -71,7 +71,7 @@ protected:
|
||||
void fieldChangedByUi( const caf::PdmFieldHandle* changedField, const QVariant& oldValue, const QVariant& newValue ) override;
|
||||
caf::PdmFieldHandle* userDescriptionField() override;
|
||||
caf::PdmFieldHandle* objectToggleField() override;
|
||||
void defineEditorAttribute( const caf::PdmFieldHandle* field,
|
||||
void defineEditorAttribute( const caf::PdmFieldHandle* field,
|
||||
QString uiConfigName,
|
||||
caf::PdmUiEditorAttribute* attribute ) override;
|
||||
|
||||
|
||||
@@ -43,7 +43,7 @@ public:
|
||||
protected:
|
||||
caf::PdmFieldHandle* objectToggleField() override;
|
||||
void fieldChangedByUi( const caf::PdmFieldHandle* changedField, const QVariant& oldValue, const QVariant& newValue ) override;
|
||||
void initAfterRead() override;
|
||||
void initAfterRead() override;
|
||||
|
||||
private:
|
||||
caf::PdmField<bool> m_isActive;
|
||||
|
||||
@@ -62,9 +62,9 @@ inline Opm::FlowDiagnostics::ConnectionValues
|
||||
{
|
||||
using ConnVals = Opm::FlowDiagnostics::ConnectionValues;
|
||||
|
||||
auto flux = ConnVals( ConnVals::NumConnections{G.numConnections()}, ConnVals::NumPhases{actPh.size()} );
|
||||
auto flux = ConnVals( ConnVals::NumConnections{ G.numConnections() }, ConnVals::NumPhases{ actPh.size() } );
|
||||
|
||||
auto phas = ConnVals::PhaseID{0};
|
||||
auto phas = ConnVals::PhaseID{ 0 };
|
||||
|
||||
for ( const auto& p : actPh )
|
||||
{
|
||||
@@ -74,7 +74,7 @@ inline Opm::FlowDiagnostics::ConnectionValues
|
||||
{
|
||||
assert( pflux.size() == flux.numConnections() );
|
||||
|
||||
auto conn = ConnVals::ConnID{0};
|
||||
auto conn = ConnVals::ConnID{ 0 };
|
||||
for ( const auto& v : pflux )
|
||||
{
|
||||
flux( conn, phas ) = v;
|
||||
|
||||
@@ -22,9 +22,9 @@
|
||||
#include <QString>
|
||||
#include <QVector>
|
||||
|
||||
#include <limits>
|
||||
#include <map>
|
||||
#include <set>
|
||||
#include <limits>
|
||||
|
||||
class QwtPlot;
|
||||
class QColor;
|
||||
|
||||
Reference in New Issue
Block a user