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 a0bc608 was
f2d6445,
checked in by Mathieu Doucet <doucetm@…>, 17 years ago
|
moving realSpaceModeling to trunk
|
-
Property mode set to
100644
|
File size:
421 bytes
|
Rev | Line | |
---|
[f2d6445] | 1 | #include <cassert> |
---|
| 2 | #include <iostream> |
---|
| 3 | #include "analytical_model.h" |
---|
| 4 | #include "sphere.h" |
---|
| 5 | |
---|
| 6 | using namespace std; |
---|
| 7 | |
---|
| 8 | void 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 | |
---|
| 19 | int main(){ |
---|
| 20 | TestAnalyticalModel(); |
---|
| 21 | printf("PASS.\n"); |
---|
| 22 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.