def create_hash_table(holder):
    """
    Create a hash table for all the cells in the domain
    """
    print('Building hash table')
    holder.hash_table = dict()
    for icell in range(holder.info['ncells']):
        igrid = int(holder.get('x')[icell] / holder.get('dx')[icell])
        jgrid = int(holder.get('y')[icell] / holder.get('dx')[icell])
        kgrid = int(holder.get('z')[icell] / holder.get('dx')[icell])
        theHash = str(igrid) + ',' + str(jgrid) + ',' + str(kgrid) + ',' + str(
            int(holder.get('level')[icell]))
        holder.hash_table[theHash] = icell
    return
