.. _method-sampling-sample_type-low_discrepancy-rank_1_lattice-m_max:

"""""
m_max
"""""


log2 of the maximum number of points in the lattice



.. toctree::
   :hidden:
   :maxdepth: 1



**Specification**

- *Alias:* None

- *Arguments:* INTEGER

- *Default:* 0


**Description**


Use this option to set the maximum number of points that this lattice rule can generate. 
The total number of points that can be generated will be ``2^m_max``.
This keyword must be specified when using the :dakkw:`method-sampling-sample_type-low_discrepancy-rank_1_lattice-generating_vector-inline` or :dakkw:`method-sampling-sample_type-low_discrepancy-rank_1_lattice-generating_vector-file` options to specify a generating vector.
It cannot be specified when a :dakkw:`method-sampling-sample_type-low_discrepancy-rank_1_lattice-generating_vector-predefined` generating vector is chosen.




**Examples**



.. code-block::

    environment
      tabular_data
        tabular_data_file = 'samples.dat'
        freeform

    method
      sampling
        samples 8
        sample_type
          low_discrepancy
            rank_1_lattice
              generating_vector inline 1 5 # this is a Fibonacci lattice
              m_max 3 # 8 points in total
              no_random_shift

    variables
      uniform_uncertain = 2
        lower_bounds 0.0 0.0
        upper_bounds 1.0 1.0

    interface
      analysis_drivers = 'genz'
      analysis_components = 'cp1'
      direct

    responses
      response_functions = 1
      no_gradients
      no_hessians



