ESS_GUIESS_GUI_DocsESS_GUI_batch_fittingESS_GUI_bumps_abstractionESS_GUI_iss1116ESS_GUI_iss879ESS_GUI_iss959ESS_GUI_openclESS_GUI_orderingESS_GUI_sync_sascalccostrafo411magnetic_scattrelease-4.1.1release-4.1.2release-4.2.2release_4.0.1ticket-1009ticket-1094-headlessticket-1242-2d-resolutionticket-1243ticket-1249ticket885unittest-saveload
Last change
on this file since 3e852ef5 was
f2d6445,
checked in by Mathieu Doucet <doucetm@…>, 17 years ago
|
moving realSpaceModeling to trunk
|
-
Property mode set to
100644
|
File size:
740 bytes
|
Line | |
---|
1 | #include "iq.h" |
---|
2 | #include <iostream> |
---|
3 | |
---|
4 | using namespace std; |
---|
5 | |
---|
6 | int 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.