source: sasview/src/sas/sascalc/simulation/analmodelpy/tests/testanalytical_model.cc @ 1b9a367

Last change on this file since 1b9a367 was d85c194, checked in by Piotr Rozyczko <piotr.rozyczko@…>, 9 years ago

Remaining modules refactored

  • Property mode set to 100644
File size: 421 bytes
RevLine 
[aa639ea]1#include <cassert>
2#include <iostream>
3#include "analytical_model.h"
4#include "sphere.h"
5
6using namespace std;
7
8void TestAnalyticalModel() {
9  Sphere sphere(1.0);
10  AnalyticalModel am(sphere);
11
12  IQ iq1(10,0.001, 0.3);
13  am.CalculateIQ(&iq1);
14
15  for (int i = 0; i < iq1.iq_data.dim1(); ++i)
16    cout << iq1.iq_data[i][0]<< " " << iq1.iq_data[i][1] <<endl; 
17}
18
19int main(){
20  TestAnalyticalModel();
21  printf("PASS.\n");
22}
Note: See TracBrowser for help on using the repository browser.