1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556 |
- #include <complex>
- #include <cstdio>
- #include <string>
- #include <iostream>
- #include "../src/shell-generator.hpp"
- int main(int argc, char *argv[]) {
- try {
- shell_generator::ShellGenerator shell;
- shell.Init();
- shell.Refine();
-
-
- double scale = 1.9;
- double shift = 1.1;
- double charge = 11.0;
- shell.Rescale(scale);
-
- auto points = shell.GetVertices();
- double charge_s = shell.IntegrateGaussSimple(charge, shift);
- std::cout << "Accuracy ( 1==ideal ): " << charge_s/charge << std::endl;
- } catch( const std::invalid_argument &ia ) {
-
- std::cerr << "Invalid argument: " << ia.what() << std::endl;
- return -1;
- }
- return 0;
- }
|