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

« back to all changes in this revision

Viewing changes to doc/pexamples/level_set_torus.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 rheolef;
 
3
using namespace std;
 
4
#include "torus.icc"
 
5
int main (int argc, char**argv) {
 
6
  environment rheolef (argc,argv);
 
7
  geo lambda (argv[1]);
 
8
  level_set_option_type opts;
 
9
  opts.split_to_triangle
 
10
    = (argc > 2 && argv[2] == std::string("-tq")) ? false : true;
 
11
  space Xh (lambda, "P1");
 
12
  field phi_h = interpolate(Xh, phi);
 
13
  geo gamma = level_set (phi_h, opts);
 
14
  dout << gamma;
 
15
}