~andy-terrel/junk/dolfwave

« back to all changes in this revision

Viewing changes to src/outputs/plots.cpp

  • Committer: Nuno Lopes
  • Date: 2013-01-04 16:00:51 UTC
  • Revision ID: ndlopes@gmail.com-20130104160051-dlmonih3h49l7dq3
Starting the update to the new dolfin 1.0.X versions

Show diffs side-by-side

added added

removed removed

Lines of Context:
4
4
// Licensed under the GNU LGPL Version 3.0 or later.
5
5
//  plots.cpp
6
6
// First added:  2009-04-14
7
 
// Last changed: 2013-01-02
 
7
// Last changed: 2013-01-04
8
8
// Compiled with DOLFIN:1.0.X
9
9
 
10
10
#include "../DwClass.h"
460
460
void dolfin::dolfwave::Dolfwave::LinePlot(
461
461
                                          const double xs , const double ys,
462
462
                                          const double  xe,const double ye,
463
 
                                          const dolfin::uint np,
 
463
                                          const int np,
464
464
                                          const std::string eta_or_phi,
465
465
                                          const std::string filename ) const
466
466
{
484
484
  Array<double> value(1);
485
485
  value[0]=0.0;
486
486
  double _p[2]={0.,0.};
487
 
  for (dolfin::uint i=0; i<np;i++)
 
487
  for (int i=0; i<np;i++)
488
488
    {
489
489
      _p[0]=xs+i*(xe-xs)/(np-1);
490
490
      _p[1]=ys+i*(ye-ys)/(np-1);