When reading a new cell, the program stores the content of each unit cell consecutively. The program always generates a block of nx * ny * nz unit cells. The innermost -fastest- loop is nx, the slowest nz.