~ubuntu-branches/ubuntu/raring/rheolef/raring-proposed

« back to all changes in this revision

Viewing changes to doc/pexamples/proj_band.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:
 
1
#include "rheolef.h"
 
2
using namespace std;
 
3
using namespace rheolef;
 
4
int main (int argc, char**argv) {
 
5
  environment rheolef (argc, argv);
 
6
  field uh, phi_h;
 
7
  din >> catchmark("u")   >> uh
 
8
      >> catchmark("phi") >> phi_h;
 
9
  const space& Xh = phi_h.get_space();
 
10
  band gh (phi_h);
 
11
  space Wh (gh.level_set(), "P1");
 
12
  gh.level_set().save();
 
13
  dout << interpolate (Wh, uh);
 
14
}