Пример #1
0
 public ReedAndShepp(double radius, string folder)
 {
     SetDllFolder(folder);
     this.radius = radius;
     if (/*Environment.Is64BitProcess*/ IntPtr.Size == 8)
     {
         if (IsLinux)
         {
             reed_shepp = X64.linux_reed_shepp;
             constRS    = X64.linux_constRS;
             X64.linux_change_radcurv(radius);
         }
         else if (IsMac)
         {
             reed_shepp = X64.mac_reed_shepp;
             constRS    = X64.mac_constRS;
             X64.mac_change_radcurv(radius);
         }
         else
         {
             reed_shepp = X64.reed_shepp;
             constRS    = X64.constRS;
             X64.change_radcurv(radius);
         }
     }
     else
     {
         if (IsLinux)
         {
             reed_shepp = X86.linux_reed_shepp;
             constRS    = X86.linux_constRS;
             X86.linux_change_radcurv(radius);
         }
         else if (IsMac)
         {
             reed_shepp = X86.mac_reed_shepp;
             constRS    = X86.mac_constRS;
             X86.mac_change_radcurv(radius);
         }
         else
         {
             reed_shepp = X86.reed_shepp;
             constRS    = X86.constRS;
             X86.change_radcurv(radius);
         }
     }
 }