parameters: (self, nlattice=None)
docstring: Receive the number of lattice point charges through MDI
  
          Arguments:
              nlattice: New number of point charges. If None, receive through MDI.
docstring_summary: Receive the number of lattice point charges through MDI
docstring_tokens: Receive the number of lattice point charges through MDI
function: def recv_nlattice(self, nlattice=None):
          """ Receive the number of lattice point charges through MDI
  
          Arguments:
              nlattice: New number of point charges. If None, receive through MDI.
          """
          if nlattice is None:
              self.nlattice = MDI_Recv(1, MDI_INT, self.comm)
          else:
              self.nlattice = nlattice
          self.clattice = [0.0 for ilat in range(3 * self.nlattice)]
          self.lattice = [0.0 for ilat in range(self.nlattice)]
          self.set_lattice_field()
function_tokens: def recv_nlattice ( self , nlattice = None ) : if nlattice is None : self . nlattice = MDI_Recv ( 1 , MDI_INT , self . comm ) else : self . nlattice = nlattice self . clattice = [ 0.0 for ilat in range ( 3 * self . nlattice ) ] self . lattice = [ 0.0 for ilat in range ( self . nlattice ) ] self . set_lattice_field ( )