Browse Source

RGridReader tweaks

submodule
T-bone 7 years ago
parent
commit
685de74d5f

+ 1
- 1
Modules/LemmaCore/include/GridReader.h View File

46
 
46
 
47
             virtual void ReadASCIIGridFile( const std::string& name )=0;
47
             virtual void ReadASCIIGridFile( const std::string& name )=0;
48
 
48
 
49
-            virtual std::shared_ptr< Grid > GetGrid( )=0;
49
+            virtual std::shared_ptr< Grid > GetGrid( ) const =0;
50
 
50
 
51
             // ====================  ACCESS        =======================
51
             // ====================  ACCESS        =======================
52
 
52
 

+ 1
- 1
Modules/LemmaCore/include/RectilinearGridReader.h View File

109
              * Accessor method for the underlying RectilinearGrid class constructed
109
              * Accessor method for the underlying RectilinearGrid class constructed
110
              * from the input file.
110
              * from the input file.
111
              */
111
              */
112
-            std::shared_ptr<Grid> GetGrid();
112
+            virtual std::shared_ptr<Grid> GetGrid() const ;
113
 
113
 
114
             // ====================  INQUIRY       =======================
114
             // ====================  INQUIRY       =======================
115
 
115
 

+ 2
- 1
Modules/LemmaCore/src/RectilinearGridReader.cpp View File

141
     //       Class:  RectilinearGridReader
141
     //       Class:  RectilinearGridReader
142
     //      Method:  GetGrid
142
     //      Method:  GetGrid
143
     //--------------------------------------------------------------------------------------
143
     //--------------------------------------------------------------------------------------
144
-    std::shared_ptr<Grid> RectilinearGridReader::GetGrid (  ) {
144
+    std::shared_ptr<Grid> RectilinearGridReader::GetGrid (  ) const {
145
         return std::static_pointer_cast<Grid> (rGrid);
145
         return std::static_pointer_cast<Grid> (rGrid);
146
+        //return rGrid;
146
     }		// -----  end of method RectilinearGridReader::GetGrid  -----
147
     }		// -----  end of method RectilinearGridReader::GetGrid  -----
147
 
148
 
148
 
149
 

Loading…
Cancel
Save