Grid<N> and Monotonicity
Jeffrey
oldham at codesourcery.com
Fri Jan 11 20:01:13 UTC 2002
The comments in src/Domain/Grid.h describe a Grid<N> as "any ascending
or descending sequence." When constructing a Grid<1> domain from an
IndirectionList<1> il, il's entries are not reordered to be ascending
or descending. Will this cause any problems when using it?
This program demonstrates the lack of monotonicity:
#include "Pooma/Pooma.h"
#include "Pooma/Domains.h"
#include <iostream>
int main(int argc, char *argv[])
{
Pooma::initialize(argc,argv);
IndirectionList<int> list(4);
list(0) = 10;
list(1) = 12;
list(2) = 11;
list(3) = 13;
Grid<1> g(list);
std::cout << g << std::endl;
Pooma::finalize();
return 0;
}
Thanks for the information,
Jeffrey D. Oldham
oldham at codesourcery.com
More information about the pooma-dev
mailing list