mirror of
				https://github.com/OPM/opm-simulators.git
				synced 2025-02-25 18:55:30 -06:00 
			
		
		
		
	Allow the rock properties to be zero initialized without a deck.
This is needed in parallel runs where the rock properties will not be read from the deck but be communicated from a master process. Nevertheless we need to be able to initialize the data structures with the correct container size. In addition we need to be able to change the container values from opm-autodiff's BlackoilPropsDataHandle.
This commit is contained in:
		@@ -31,10 +31,16 @@ namespace Opm
 | 
			
		||||
 | 
			
		||||
    class RockFromDeck
 | 
			
		||||
    {
 | 
			
		||||
        // BlackoilPropsDataHandle needs mutable
 | 
			
		||||
        // access to porosity and permeability
 | 
			
		||||
        friend class BlackoilPropsDataHandle;
 | 
			
		||||
 | 
			
		||||
    public:
 | 
			
		||||
        /// Default constructor.
 | 
			
		||||
        RockFromDeck();
 | 
			
		||||
 | 
			
		||||
        /// Creates rock properties with zero porosity and permeability
 | 
			
		||||
        /// \param number_of_cells The number of cells
 | 
			
		||||
        RockFromDeck(std::size_t number_of_cells);
 | 
			
		||||
        /// Initialize from deck and cell mapping.
 | 
			
		||||
        /// \param  eclState        The EclipseState (processed deck) produced by the opm-parser code
 | 
			
		||||
        /// \param  number_of_cells The number of cells in the grid.
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user