source: sasview/src/sas/sascalc/simulation/iqPy/tests/testiq.cc @ c416a17

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

Remaining modules refactored

  • Property mode set to 100644
File size: 740 bytes
RevLine 
[aa639ea]1#include "iq.h"
2#include <iostream>
3
4using namespace std;
5
6int main(){
7
8  cout << " Generating a empty iq 2D array with size of 10"  << endl;
9        IQ iq1(10);
10
11        for (int i = 0; i< iq1.iq_data.dim1(); i++)
12                cout << iq1.iq_data[i][0]<< " " << iq1.iq_data[i][0] <<endl;
13
14        int dim = iq1.iq_data.dim1();
15
16        cout << "dimension of the iq array is : " << dim << endl;
17
18        iq1.SetQmin(0.001);
19        iq1.SetQmax(0.4);
20        iq1.SetContrast(1.0);
21        iq1.SetVolFrac(1.0);
22
23        cout << iq1.GetQmin() << " " << iq1.GetQmax() << " " << iq1.GetContrast() << " " << iq1.GetVolFrac() << endl;
24
25        cout << "generating another empty iq object through constructor IQ(numI,qmin,qmax)" <<endl;
26       
27        IQ iq2(15,0.001,0.4);
28
29        iq2.OutputIQ("out.iq");
30
31        cout << "pass." << endl;
32
33        return 0;
34}
Note: See TracBrowser for help on using the repository browser.