this allows using explicit template instantation to only compile this code per grid, not per simulator object