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 5032ea68 was
d85c194,
checked in by Piotr Rozyczko <piotr.rozyczko@…>, 9 years ago
|
Remaining modules refactored
|
-
Property mode set to
100644
|
File size:
421 bytes
|
Rev | Line | |
---|
[aa639ea] | 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.