parameters: (self, node_map)
docstring: Apply the given node map to reorder all nodes.
  
          Node i becomes node node_map[i].
docstring_summary: Apply the given node map to reorder all nodes.
docstring_tokens: Apply the given node map to reorder all nodes .
function: def _apply_node_map(self, node_map):
          """
          Apply the given node map to reorder all nodes.
  
          Node i becomes node node_map[i].
  
          """
          assert sorted(node_map) == range(len(self.nodes))
          # find reverse_node_map
          reverse_node_map = self._get_reverse_index_map(node_map)
          # reorder nodes
          self.nodes = [self.nodes[x] for x in reverse_node_map]
          # reorder element connectivity
          for element_block_id in self.get_element_block_ids():
              connectivity = self.get_connectivity(element_block_id)
              connectivity[:] = [node_map[x] for x in connectivity]
          # reorder node fields
          for field in self.node_fields.values():
              for timestep_index in xrange(len(self.timesteps)):
                  values = field[timestep_index]
                  field[timestep_index] = [values[x] for x in reverse_node_map]
          # reorder nodes in node sets
          for node_set_id in self.get_node_set_ids():
              members = self.get_node_set_members(node_set_id)
              members[:] = [node_map[x] for x in members]
function_tokens: def _apply_node_map ( self , node_map ) : assert sorted ( node_map ) == range ( len ( self . nodes ) ) # find reverse_node_map reverse_node_map = self . _get_reverse_index_map ( node_map ) # reorder nodes self . nodes = [ self . nodes [ x ] for x in reverse_node_map ] # reorder element connectivity for element_block_id in self . get_element_block_ids ( ) : connectivity = self . get_connectivity ( element_block_id ) connectivity [ : ] = [ node_map [ x ] for x in connectivity ] # reorder node fields for field in self . node_fields . values ( ) : for timestep_index in xrange ( len ( self . timesteps ) ) : values = field [ timestep_index ] field [ timestep_index ] = [ values [ x ] for x in reverse_node_map ] # reorder nodes in node sets for node_set_id in self . get_node_set_ids ( ) : members = self . get_node_set_members ( node_set_id ) members [ : ] = [ node_map [ x ] for x in members ]