# Copyright (c) 1998 Lawrence Livermore National Security, LLC and other
# HYPRE Project Developers. See the top-level COPYRIGHT file for details.
#
# SPDX-License-Identifier: (Apache-2.0 OR MIT)


###########################################################

# GridCreate: ndim nparts
GridCreate: 3 2

# GridSetExtents: part ilower(ndim) iupper(ndim)
GridSetExtents: 0 (1- 1- 1-) (2+ 2+ 1+)
GridSetExtents: 1 (1- 1- 1-) (2+ 2+ 1+)

# GridSetVariables: part nvars vartypes[nvars]
# NODE  = 1
GridSetVariables: 0 1 [1]
GridSetVariables: 1 1 [1]

# GridSetSharedPart: part  ilower(ndim)  iupper(ndim)  offset[ndim] \
#                    spart silower(ndim) siupper(ndim) soffset[ndim] \
#                    index_map[ndim] index_dir[ndim]
GridSetSharedPart: 0 (0- 0- 1+) (3+ 3+ 1+) [0 0  1] 1 (0- 0- 1-) (3+ 3+ 1-) [0 0 -1] [0 1 2] [1 1 1]
GridSetSharedPart: 1 (0- 0- 1-) (3+ 3+ 1-) [0 0 -1] 0 (0- 0- 1+) (3+ 3+ 1+) [0 0  1] [0 1 2] [1 1 1]

###########################################################

# FEMStencilCreate: size
FEMStencilCreate: 8
 
# FEMStencilSetRow: row offset[ndim] var values[size]
FEMStencilSetRow:  0 [-1 -1 -1] 0 [  4 -1 -1  0 -1  0  0  0  ]
FEMStencilSetRow:  1 [ 0 -1 -1] 0 [ -1  4  0 -1  0 -1  0  0  ]
FEMStencilSetRow:  2 [-1  0 -1] 0 [ -1  0  4 -1  0  0 -1  0  ]
FEMStencilSetRow:  3 [ 0  0 -1] 0 [  0 -1 -1  4  0  0  0 -1  ]
FEMStencilSetRow:  4 [-1 -1  0] 0 [ -1  0  0  0  4 -1 -1  0  ]
FEMStencilSetRow:  5 [ 0 -1  0] 0 [  0 -1  0  0 -1  4  0 -1  ]
FEMStencilSetRow:  6 [-1  0  0] 0 [  0  0 -1  0 -1  0  4 -1  ]
FEMStencilSetRow:  7 [ 0  0  0] 0 [  0  0  0 -1  0 -1 -1  4  ]

###########################################################

# ProcessPoolCreate: num_pools
ProcessPoolCreate: 1

# ProcessPoolSetPart: pool part
ProcessPoolSetPart: 0 0
ProcessPoolSetPart: 0 1

###########################################################

