~fdm-lab/fidlab/main

« back to all changes in this revision

Viewing changes to examples/gsl1d_is_neu_2.cpp

  • Committer: Apostol Faliagas
  • Date: 2020-12-18 14:28:37 UTC
  • Revision ID: apostol.faliagas@gmail.com-20201218142837-g6h3d2c302mk8t02
VersionĀ 0.8

Show diffs side-by-side

added added

removed removed

Lines of Context:
28
28
 *  Exact solution:
29
29
 *  $u(x)=e^{\lambda x}\sin\lambda x$
30
30
 *
31
 
 *  Boundary discretization method: SYM_DIFF2, INWARD_DIFF3
 
31
 *  Boundary discretization method: INWARD_DIFF3
32
32
 *  Linear solver: GSL all but GMRES (it does not work).
33
33
 */
34
34
)";
55
55
    // Part 2: declaration and customization of PDE
56
56
    PDE pde(mesh);
57
57
    pde.name = "PDE1d";
58
 
    pde.set_boundary_discretization_method(PDE::/*SYM_DIFF2*/INWARD_DIFF4);
 
58
    pde.set_boundary_discretization_method(PDE::INWARD_DIFF4);
59
59
 
60
60
    // Part 3: set PDE fields, BCs and functions
61
61
    pde.set_field(u);
89
89
 
90
90
    // Part 6: output
91
91
    pde.executable = "gsl1d_neu_2";
92
 
    pde.compiler = "clang++";
 
92
//    pde.compiler = "clang++;
93
93
    pde.project_info = project_info;
94
94
    pde.set_output("code/is/gsl1d_neu_2");
95
95
    pde.generate_code();