~ubuntu-branches/ubuntu/intrepid/gmsh/intrepid

« back to all changes in this revision

Viewing changes to Common/AdaptiveViews.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Emmet Hikory
  • Date: 2007-05-07 10:01:37 UTC
  • mfrom: (1.2.4 upstream)
  • Revision ID: james.westby@ubuntu.com-20070507100137-6j0rzz1ucbn0m2jt
Tags: 2.0.7-1ubuntu1
* Merged with Debian unstable.  Remaining Ubuntu changes:
  - Add .desktop file
  - Add icon
* Added XSBC-Original-Maintainer
* Removed Application Category from gmsh.desktop
* Link against GLU (fixes FTBFS)

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
//
2
 
// Copyright (C) 1997-2006 C. Geuzaine, J.-F. Remacle
 
2
// Copyright (C) 1997-2007 C. Geuzaine, J.-F. Remacle
3
3
//
4
4
// This program is free software; you can redistribute it and/or modify
5
5
// it under the terms of the GNU General Public License as published by
752
752
    p->X = XYZ(kk, 0);
753
753
    p->Y = XYZ(kk, 1);
754
754
    p->Z = XYZ(kk, 2);
755
 
    if (min > p->val) min = p->val;
756
 
    if (max < p->val) max = p->val;
 
755
    if (minval > p->val) minval = p->val;
 
756
    if (maxval < p->val) maxval = p->val;
757
757
    kk++;
758
758
  }
759
759
  double c2 = Cpu();
766
766
  }
767
767
 
768
768
  if(!plug || tol != 0.0) {
769
 
    ELEM::Error(max - min, tol);
 
769
    ELEM::Error(maxval - minval, tol);
770
770
  }
771
771
 
772
772
  if(plug)
1042
1042
  }
1043
1043
  else return;
1044
1044
 
1045
 
  min = VAL_INF;
1046
 
  max = -VAL_INF;
 
1045
  minval = VAL_INF;
 
1046
  maxval = -VAL_INF;
1047
1047
 
1048
1048
  int nb = List_Nbr(myList) / (nbelm);
1049
1049