~ubuntu-branches/ubuntu/saucy/rheolef/saucy

« back to all changes in this revision

Viewing changes to nfem/ptst/geo_locate_tst.cc

  • Committer: Package Import Robot
  • Author(s): Pierre Saramito, Pierre Saramito, Sylvestre Ledru
  • Date: 2012-05-14 14:02:09 UTC
  • mfrom: (1.1.6)
  • Revision ID: package-import@ubuntu.com-20120514140209-dzbdlidkotyflf9e
Tags: 6.1-1
[ Pierre Saramito ]
* New upstream release 6.1 (minor changes):
  - support arbitrarily polynomial order Pk
  - source code supports g++-4.7 (closes: #671996)

[ Sylvestre Ledru ]
* update of the watch file

Show diffs side-by-side

added added

removed removed

Lines of Context:
27
27
using namespace std;
28
28
int main(int argc, char**argv) {
29
29
  environment rheolef (argc,argv);
30
 
  typedef distributed M;
31
 
  typedef geo_basic<Float,M>::size_type size_type;
32
 
  geo_basic<Float,M> omega;
 
30
  geo_basic<Float> omega;
33
31
  din >> omega;
34
 
  size_type d = omega.dimension();
 
32
  size_t d = omega.dimension();
35
33
 
36
34
  point_basic<Float> x;
37
35
  x[0] = (d >= 1 && argc > 1) ? atof(argv[1]) : 0.51;
38
36
  x[1] = (d >= 2 && argc > 2) ? atof(argv[2]) : 0.52;
39
37
  x[2] = (d >= 3 && argc > 3) ? atof(argv[3]) : 0.53;
40
38
 
41
 
  size_type dis_ie = omega.dis_locate (x); 
 
39
  size_t dis_ie = omega.dis_locate (x); 
42
40
  dout << dis_ie << endl;
43
 
  return (dis_ie != numeric_limits<size_type>::max()) ? 0 : 1;
 
41
  return (dis_ie != numeric_limits<size_t>::max()) ? 0 : 1;
44
42
}