Ignore:
Timestamp:
Apr 27, 2012, 11:34:57 PM (14 years ago)
Author:
Julian Iseringhausen <isering@…>
Children:
1a92cf
Parents:
b2154a3
Message:

vmg: Implement fourth-order discretization of the Poisson equation.

git-svn-id: https://svn.version.fz-juelich.de/scafacos/trunk@1762 5161e1c8-67bf-11de-9fd5-51895aff932f

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/interface/interface_particles_cf.cpp

    rb2154a3 r4571da  
    5959  int max_level, max_iterations;
    6060  int pre_smoothing_steps, post_smoothing_steps;
    61   int gamma, near_field_cells;
     61  int gamma, near_field_cells, discretization_order;
    6262  vmg_float precision;
    6363  std::string lop_str, datafile_str;
     
    109109  gamma = Helper::ToValWithDefault<int>(xml_conf.child_value("gamma"), 1);
    110110  near_field_cells = Helper::ToValWithDefault<int>(xml_conf.child_value("near_field_cells"), 3);
     111  discretization_order = Helper::ToValWithDefault<int>(xml_conf.child_value("discretization_order"), 2);
    111112  precision = Helper::ToValWithDefault<vmg_float>(xml_conf.child_value("precision"), 1.0e-7);
    112113  lop_str = xml_conf.child_value("level_operator");
     
    126127  MG::SetInterface(interface, comm);
    127128
    128   Discretization* discretization = new DiscretizationPoissonFD();
     129  Discretization* discretization = new DiscretizationPoissonFD(discretization_order);
    129130  discretization->Register("DISCRETIZATION");
    130131
     
    174175    std::printf("  Precision:                    %e\n", precision);
    175176    std::printf("  Near field cells:             %d\n", near_field_cells);
     177    std::printf("  Discretization order:         %d\n", discretization_order);
    176178  }
    177179
Note: See TracChangeset for help on using the changeset viewer.