ResInsight
ResInsight copied to clipboard
Identify too large source files and split them
There are several very large source files in the repository. Investigate candidates and split into smaller files.
find -iname "*.cpp" | xargs wc -l | sort -n -r
All cpp files with 1000 or more lines:
3513 ./ProjectDataModel/WellLog/RimWellLogTrack.cpp
3373 ./ReservoirDataModel/RigCaseCellResultsData.cpp
3167 ./ProjectDataModel/Summary/RimSummaryPlot.cpp
2749 ./ProjectDataModel/RimEclipseResultDefinition.cpp
2427 ./FileInterface/RifReaderEclipseOutput.cpp
2329 ./UserInterface/RiuSummaryQuantityNameInfoProvider.cpp
2329 ./ProjectDataModel/RimEclipseView.cpp
2141 ./ProjectDataModel/Summary/RimEnsembleCurveSet.cpp
2109 ./UserInterface/RiuMainWindow.cpp
1887 ./Commands/CompletionExportCommands/RicWellPathExportMswCompletionsImpl.cpp
1864 ./GeoMech/GeoMechDataModel/RigFemPartResultsCollection.cpp
1853 ./ProjectDataModel/StimPlanModel/RimStimPlanModel.cpp
1778 ./ProjectDataModel/AnalysisPlots/RimAnalysisPlot.cpp
1776 ./ProjectDataModel/RimContourMapProjection.cpp
1754 ./ProjectDataModel/Rim3dView.cpp
1719 ./Application/RiaGuiApplication.cpp
1684 ./Application/RiaApplication.cpp
1671 ./Commands/CompletionExportCommands/RicWellPathExportCompletionDataFeatureImpl.cpp
1661 ./ProjectDataModel/RimProject.cpp
1643 ./ProjectDataModel/Summary/RimSummaryMultiPlot.cpp
1617 ./ProjectDataModel/RimDepthTrackPlot.cpp
1563 ./UserInterface/RiuQwtPlotWidget.cpp
1551 ./FileInterface/RifEclipseInputFileTools.cpp
1547 ./UserInterface/RiuSummaryVectorSelectionUi.cpp
1540 ./ProjectDataModel/RimContextCommandBuilder.cpp
1531 ./ProjectDataModel/Summary/RimSummaryPlotSourceStepping.cpp
1484 ./ProjectDataModel/Flow/RimWellRftPlot.cpp
1473 ./ReservoirDataModel/RigGeoMechWellLogExtractor.cpp
1466 ./UserInterface/RiuViewer.cpp
1458 ./ProjectDataModel/GridCrossPlots/RimGridCrossPlotDataSet.cpp
1426 ./ProjectDataModel/WellLog/RimWellLogRftCurve.cpp
1396 ./ProjectDataModel/WellLog/RimWellLogExtractionCurve.cpp
1382 ./ProjectDataModel/Flow/RimWellPlotTools.cpp
1345 ./UserInterface/RiuQtChartsPlotWidget.cpp
1343 ./ProjectDataModel/RimRegularLegendConfig.cpp
1325 ./ProjectDataModel/Completions/RimEnsembleFractureStatistics.cpp
1321 ./SocketInterface/RiaPropertyDataCommands.cpp
1320 ./ProjectDataModel/Intersections/RimExtrudedCurveIntersection.cpp
1303 ./ProjectDataModel/WellLog/RimEnsembleWellLogCurveSet.cpp
1299 ./ProjectDataModel/Summary/RimSummaryCurve.cpp
1279 ./ReservoirDataModel/cvfGeometryTools.cpp
1256 ./ProjectDataModel/RimPlotCurve.cpp
1250 ./ProjectDataModel/GeoMech/RimGeoMechCase.cpp
1239 ./UserInterface/RiuViewerCommands.cpp
1226 ./ProjectDataModel/WellPath/RimWellPath.cpp
1222 ./UserInterface/RiuMultiPlotPage.cpp
1212 ./ProjectDataModel/WellLog/RimWellLogCurveCommonDataSource.cpp
1199 ./ModelVisualization/RivWellFracturePartMgr.cpp
1198 ./ProjectDataModel/Summary/RimSummaryCaseCollection.cpp
1194 ./ReservoirDataModel/RigSimulationWellCenterLineCalculator.cpp
1191 ./UserInterface/RiuResultTextBuilder.cpp
1191 ./ProjectDataModel/RimEclipseCase.cpp
1190 ./ModelVisualization/RivReservoirViewPartMgr.cpp
1187 ./Commands/SsiHubImportCommands/RiuWellImportWizard.cpp
1154 ./ProjectDataModel/RimViewController.cpp
1125 ./UserInterface/RiuPlotMainWindow.cpp
1110 ./ProjectDataModel/GeoMech/RimGeoMechView.cpp
1100 ./UnitTests/ObservedDataParser-Test.cpp
1082 ./ProjectDataModel/GridCrossPlots/RimGridCrossPlot.cpp
1081 ./ProjectDataModel/Flow/RimWellPltPlot.cpp
1076 ./Commands/CompletionExportCommands/RicMswTableFormatterTools.cpp
1071 ./ModelVisualization/RivWellPathPartMgr.cpp
1067 ./ReservoirDataModel/RigMainGrid.cpp
1047 ./Commands/RicRecursiveFileSearchDialog.cpp
1030 ./ProjectDataModel/Rim3dOverlayInfoConfig.cpp
1030 ./FileInterface/RifEclipseSummaryAddress.cpp
1010 ./ProjectDataModel/RimSimWellInViewCollection.cpp
1010 ./ProjectDataModel/Completions/RimFracture.cpp
1009 ./ProjectDataModel/WellPath/RimWellPathCollection.cpp
1009 ./FileInterface/RifReaderOpmRft.cpp
1008 ./ProjectDataModel/Completions/RimFractureTemplate.cpp