Browse Source

format change with kernel pring

master
Trevor Irons 8 years ago
parent
commit
1d91df0174
2 changed files with 5 additions and 2 deletions
  1. 1
    1
      examples/KernelV0.cpp
  2. 4
    1
      src/KernelV0.cpp

+ 1
- 1
examples/KernelV0.cpp View File

45
 
45
 
46
         Kern->SetIntegrationSize( (Vector3r() << 200,200,2).finished() );
46
         Kern->SetIntegrationSize( (Vector3r() << 200,200,2).finished() );
47
         Kern->SetIntegrationOrigin( (Vector3r() << 0,0,15).finished() );
47
         Kern->SetIntegrationOrigin( (Vector3r() << 0,0,15).finished() );
48
-        Kern->SetTolerance( 1e-11 );
48
+        Kern->SetTolerance( 1e-13 );
49
 
49
 
50
         Kern->SetPulseDuration(0.020);
50
         Kern->SetPulseDuration(0.020);
51
         Kern->SetPulseCurrent( VectorXr::LinSpaced( 20, .01, 200 )  ); // nbins, low, high
51
         Kern->SetPulseCurrent( VectorXr::LinSpaced( 20, .01, 200 )  ); // nbins, low, high

+ 4
- 1
src/KernelV0.cpp View File

149
             }
149
             }
150
         }
150
         }
151
         std::cout << "\rFinished KERNEL\n";
151
         std::cout << "\rFinished KERNEL\n";
152
-        std::cout << Kern << std::endl;
152
+        std::cout << "real\n";
153
+        std::cout << Kern.real() << std::endl;
154
+        std::cout << "imag\n";
155
+        std::cout << Kern.imag() << std::endl;
153
         //IntegrateOnOctreeGrid( vtkOutput );
156
         //IntegrateOnOctreeGrid( vtkOutput );
154
     }
157
     }
155
 
158
 

Loading…
Cancel
Save