<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Specific Stiff ODE Problem in Intel® oneAPI Math Kernel Library</title>
    <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Specific-Stiff-ODE-Problem/m-p/897890#M11044</link>
    <description>&lt;DIV style="margin:0px;"&gt;
&lt;DIV id="quote_reply" style="width: 100%; margin-top: 5px;"&gt;
&lt;DIV style="margin-left:2px;margin-right:2px;"&gt;Hi Sergey&lt;BR /&gt;&lt;BR /&gt;Here's a test case. This is the set of ODEs I'm trying to solve:&lt;BR /&gt;&lt;BR /&gt;//Constants&lt;BR /&gt;a = 36.367689741213006  * exp(0.055398582982867296  * resistance);  &lt;BR /&gt;b = 0.28447798136999997 * exp(-0.02159796106832056  * resistance);  &lt;BR /&gt;c = 176.39278458673601  * exp(0.055398582982867296  * resistance);  &lt;BR /&gt;d = -4.6565444211489995 * exp(-0.036607982538678523 * resistance); &lt;BR /&gt;e = 1334.3934962347917  * exp(-0.030581515065542283 * resistance); &lt;BR /&gt;f = 5003.889182919519   * exp(0.018865463394165619  * resistance);  &lt;BR /&gt;g = e*b/f;                                      &lt;BR /&gt;&lt;BR /&gt;//ODEs&lt;BR /&gt;dY1 = (d * Y2)-(c * Y1)&lt;BR /&gt;dY2 = -((d + 2.172) * Y2)+(c * Y1)+(1.077 * Y3)&lt;BR /&gt;dY3 = -((1.077 + a + a) * Y3) + (2.172 * Y2) + (b * Y4) + (g * Y5)&lt;BR /&gt;dY4 =  -((b + f) * Y4) + (a * Y3) + (e * Y5)&lt;BR /&gt;dY5 = -((g + e) * Y5) + (a * Y3) + (f * Y4)&lt;BR /&gt;&lt;BR /&gt;Ideally, 'start_time' = 0.0 and 'end_time' = 6100.0 and over. 'Time_step' = 0.02 or less.&lt;BR /&gt;Again, ideally, I'd like to obtain solutions at each time step.&lt;BR /&gt;&lt;BR /&gt;N.B: Resistances have values of -80 to 40 in steps of 10. However, a test &lt;BR /&gt;resistance of -40 should be sufficient.&lt;BR /&gt;&lt;BR /&gt;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;BR /&gt;Thanks,&lt;BR /&gt;&lt;BR /&gt;Ted&lt;BR /&gt;</description>
    <pubDate>Thu, 26 Feb 2009 10:43:39 GMT</pubDate>
    <dc:creator>ted_kord</dc:creator>
    <dc:date>2009-02-26T10:43:39Z</dc:date>
    <item>
      <title>Specific Stiff ODE Problem</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Specific-Stiff-ODE-Problem/m-p/897882#M11036</link>
      <description>Hi all&lt;BR /&gt;&lt;BR /&gt;I have a set of five coupled ODEs.&lt;BR /&gt;Each ode has one or more additional parameters. &lt;BR /&gt;Each parameter however, is a function of ,say, voltage.&lt;BR /&gt;So, for example:&lt;BR /&gt;ODE 1: RHS = f(t,y) = a * exp(......)&lt;BR /&gt;where the value of 'a' is dependent on a specific voltage, i.e, a(voltage).&lt;BR /&gt;&lt;BR /&gt;I need to (must) solve the ODEs and obtain the current solution at each time step!&lt;BR /&gt;&lt;BR /&gt;Question 1 : How can I supply at each time step a different voltage to calculate the parameter 'a'?&lt;BR /&gt;Question 2a: How can I obtain the solution at each time step ?&lt;BR /&gt;Question 2b: Perform some operation(s) with the current solution at that time step and then advance to the next time step?&lt;BR /&gt;&lt;BR /&gt;I've tried several stiff ODE algorithms but no luck. I'd now like to use the Intel ODE library to solve this problem.&lt;BR /&gt;&lt;BR /&gt;Any pointers/help in how to do this is appreciated.&lt;BR /&gt;&lt;BR /&gt;Thanks&lt;BR /&gt;&lt;BR /&gt;Ted Kord&lt;BR /&gt;</description>
      <pubDate>Mon, 23 Feb 2009 20:51:26 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Specific-Stiff-ODE-Problem/m-p/897882#M11036</guid>
      <dc:creator>ted_kord</dc:creator>
      <dc:date>2009-02-23T20:51:26Z</dc:date>
    </item>
    <item>
      <title>Re: Specific Stiff ODE Problem</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Specific-Stiff-ODE-Problem/m-p/897883#M11037</link>
      <description>&lt;DIV style="margin:0px;"&gt;Hi Ted!&lt;BR /&gt;&lt;BR /&gt;First of all, thank you for trying Intel ODE Solver Library! To answer your questions, let me consider general Fortran interface CALL dodesol(ipar,n,t,t_end,y,rhs,jacmat,h,hm,ep,tr,dpar,kd,ierr). &lt;BR /&gt;&lt;BR /&gt;According to the Manual, you can set parameter ipar(3) to 1. This would slow down the solver a bit, but it will exit after each step. As a result, you will be able to do your operations and/or do whatever you like to the computed solution after each step. You can find current time in t and current solution in y. This could be summarized as follows:&lt;BR /&gt;ipar(3)=1&lt;BR /&gt;do while (t&lt;T_END&gt;&lt;/T_END&gt;CALL dodesol(ipar,n,t,t_end,y,rhs,jacmat,h,hm,ep,tr,dpar,kd,ierr)&lt;BR /&gt;! do what you need to do with the computed solution y at time t &lt;BR /&gt;enddo&lt;BR /&gt;This should answer questions 2a and 2b.&lt;BR /&gt;&lt;BR /&gt;I dont fully get your question number 1. Do you mean that you would like to have a way to pass additional parameter voltage to RHS routine? If so, then I would need more details about your problem to help you. I can think of stuff like global variables/common blocks or routine like get_current_voltage() to get the information inside RHS routine without passing it through fixed set of parameters. &lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Sergey G&lt;BR /&gt;&lt;/DIV&gt;
&lt;BR /&gt;</description>
      <pubDate>Tue, 24 Feb 2009 07:15:33 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Specific-Stiff-ODE-Problem/m-p/897883#M11037</guid>
      <dc:creator>Sergey_G_Intel</dc:creator>
      <dc:date>2009-02-24T07:15:33Z</dc:date>
    </item>
    <item>
      <title>Re: Specific Stiff ODE Problem</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Specific-Stiff-ODE-Problem/m-p/897884#M11038</link>
      <description>&lt;DIV style="margin:0px;"&gt;
&lt;DIV id="quote_reply" style="width: 100%; margin-top: 5px;"&gt;
&lt;DIV style="margin-left:2px;margin-right:2px;"&gt;Hi Sergey, &lt;BR /&gt;&lt;BR /&gt;Thanks for the help. Your explanation makes sense 'BUT':&lt;BR /&gt;&lt;BR /&gt;I've set ipar[3] = 1.&lt;BR /&gt;I carried out the calcluations I required after the dodesol* call.&lt;BR /&gt;&lt;BR /&gt;However, it seems to be taking an inordinately long time before completing a step (somewhat understably).&lt;BR /&gt;I actually have to stop the run because the time taken to compute just that step is totally unacceptable for the purposes of my simulation.&lt;BR /&gt;&lt;BR /&gt;Am I doing something wrong?&lt;BR /&gt;&lt;BR /&gt;Example code:&lt;BR /&gt;&lt;BR /&gt;...&lt;BR /&gt;...&lt;BR /&gt;ipar[3] = 1&lt;BR /&gt;&lt;BR /&gt;do {&lt;BR /&gt; dodesol(ipar, &amp;amp;n, &amp;amp;t, &amp;amp;t_end, y, rhs_v_d_p, jacmat_v_d_p, &amp;amp;h, &amp;amp;hm, &amp;amp;ep, &amp;amp;tr, dpar, kd, &amp;amp;ierr);&lt;BR /&gt; &lt;BR /&gt; //Perform some calcultions&lt;BR /&gt; .......&lt;BR /&gt; .......&lt;BR /&gt;&lt;BR /&gt; //Output results&lt;BR /&gt; cout ....................&lt;BR /&gt; &lt;BR /&gt;} while (t &amp;lt; t_end);&lt;BR /&gt;&lt;BR /&gt;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;</description>
      <pubDate>Tue, 24 Feb 2009 11:40:40 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Specific-Stiff-ODE-Problem/m-p/897884#M11038</guid>
      <dc:creator>ted_kord</dc:creator>
      <dc:date>2009-02-24T11:40:40Z</dc:date>
    </item>
    <item>
      <title>Re: Specific Stiff ODE Problem</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Specific-Stiff-ODE-Problem/m-p/897885#M11039</link>
      <description>Hi Ted,&lt;BR /&gt;&lt;BR /&gt;What I can see from your explanations is that your are using C code. C arrays have slightly different indexing than Fortran ones (the latter indexing should be shifted by -1 to get the former one). Therefore, you have to set ipar[2]=1 to exit after each step of computations. With ipar[3] set to 1, the dodesol routine would try to compute your Jacobi matrix using provided by you routine jacmat_v_d_p and compute the solution at time t_end. This may take a while if your problem is stiff. &lt;BR /&gt;In summary, try to set ipar[2] to 1 and if this does not help much, then I would need more details about your test case. &lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Sergey G&lt;BR /&gt;</description>
      <pubDate>Tue, 24 Feb 2009 11:54:48 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Specific-Stiff-ODE-Problem/m-p/897885#M11039</guid>
      <dc:creator>Sergey_G_Intel</dc:creator>
      <dc:date>2009-02-24T11:54:48Z</dc:date>
    </item>
    <item>
      <title>Re: Specific Stiff ODE Problem</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Specific-Stiff-ODE-Problem/m-p/897886#M11040</link>
      <description>You're absolutely spot on Sergey. I just remembered that now. &lt;BR /&gt;&lt;BR /&gt;It's working fine now. Thx.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;I'll keep you updated.&lt;BR /&gt;&lt;BR /&gt;Ted&lt;BR /&gt;</description>
      <pubDate>Tue, 24 Feb 2009 12:05:07 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Specific-Stiff-ODE-Problem/m-p/897886#M11040</guid>
      <dc:creator>ted_kord</dc:creator>
      <dc:date>2009-02-24T12:05:07Z</dc:date>
    </item>
    <item>
      <title>Re: Specific Stiff ODE Problem</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Specific-Stiff-ODE-Problem/m-p/897887#M11041</link>
      <description>You're always welcome, Ted!&lt;BR /&gt;&lt;BR /&gt;-Sergey G</description>
      <pubDate>Tue, 24 Feb 2009 12:09:40 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Specific-Stiff-ODE-Problem/m-p/897887#M11041</guid>
      <dc:creator>Sergey_G_Intel</dc:creator>
      <dc:date>2009-02-24T12:09:40Z</dc:date>
    </item>
    <item>
      <title>Re: Specific Stiff ODE Problem</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Specific-Stiff-ODE-Problem/m-p/897888#M11042</link>
      <description>Hi Sergey&lt;BR /&gt;&lt;BR /&gt;The program runs fine, performs the intermediate calculatations and outputs fine at the required steps. 'BUT' now I have a different question/problem.&lt;BR /&gt;&lt;BR /&gt;The values output are extremely large which shouldn't be the case. However, I get somewhat similar values with one or two other stiff integrators. ~ 1e+305&lt;BR /&gt;&lt;BR /&gt;Then after a certain time step, (less than 1% of the total time interval) , it spits out an 'inf' which cnonsequently renders other calculations as 'nan'. Then, the program just hangs.&lt;BR /&gt;&lt;BR /&gt;Any thoughts?&lt;BR /&gt;&lt;BR /&gt;Ted&lt;BR /&gt;</description>
      <pubDate>Wed, 25 Feb 2009 14:44:56 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Specific-Stiff-ODE-Problem/m-p/897888#M11042</guid>
      <dc:creator>ted_kord</dc:creator>
      <dc:date>2009-02-25T14:44:56Z</dc:date>
    </item>
    <item>
      <title>Re: Specific Stiff ODE Problem</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Specific-Stiff-ODE-Problem/m-p/897889#M11043</link>
      <description>&lt;DIV style="margin:0px;"&gt;Hi Ted,&lt;BR /&gt;&lt;BR /&gt;Numbers like 1e+305 usually appears as a result of usage of uninitialized variables that contain garbage or memory corruption, e.g., reading u[100] in array u of size 100. Can I get a test case (preferably, small) that demonstrates your problem? &lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;-Sergey G&lt;BR /&gt;&lt;/DIV&gt;</description>
      <pubDate>Thu, 26 Feb 2009 03:19:38 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Specific-Stiff-ODE-Problem/m-p/897889#M11043</guid>
      <dc:creator>Sergey_G_Intel</dc:creator>
      <dc:date>2009-02-26T03:19:38Z</dc:date>
    </item>
    <item>
      <title>Re: Specific Stiff ODE Problem</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Specific-Stiff-ODE-Problem/m-p/897890#M11044</link>
      <description>&lt;DIV style="margin:0px;"&gt;
&lt;DIV id="quote_reply" style="width: 100%; margin-top: 5px;"&gt;
&lt;DIV style="margin-left:2px;margin-right:2px;"&gt;Hi Sergey&lt;BR /&gt;&lt;BR /&gt;Here's a test case. This is the set of ODEs I'm trying to solve:&lt;BR /&gt;&lt;BR /&gt;//Constants&lt;BR /&gt;a = 36.367689741213006  * exp(0.055398582982867296  * resistance);  &lt;BR /&gt;b = 0.28447798136999997 * exp(-0.02159796106832056  * resistance);  &lt;BR /&gt;c = 176.39278458673601  * exp(0.055398582982867296  * resistance);  &lt;BR /&gt;d = -4.6565444211489995 * exp(-0.036607982538678523 * resistance); &lt;BR /&gt;e = 1334.3934962347917  * exp(-0.030581515065542283 * resistance); &lt;BR /&gt;f = 5003.889182919519   * exp(0.018865463394165619  * resistance);  &lt;BR /&gt;g = e*b/f;                                      &lt;BR /&gt;&lt;BR /&gt;//ODEs&lt;BR /&gt;dY1 = (d * Y2)-(c * Y1)&lt;BR /&gt;dY2 = -((d + 2.172) * Y2)+(c * Y1)+(1.077 * Y3)&lt;BR /&gt;dY3 = -((1.077 + a + a) * Y3) + (2.172 * Y2) + (b * Y4) + (g * Y5)&lt;BR /&gt;dY4 =  -((b + f) * Y4) + (a * Y3) + (e * Y5)&lt;BR /&gt;dY5 = -((g + e) * Y5) + (a * Y3) + (f * Y4)&lt;BR /&gt;&lt;BR /&gt;Ideally, 'start_time' = 0.0 and 'end_time' = 6100.0 and over. 'Time_step' = 0.02 or less.&lt;BR /&gt;Again, ideally, I'd like to obtain solutions at each time step.&lt;BR /&gt;&lt;BR /&gt;N.B: Resistances have values of -80 to 40 in steps of 10. However, a test &lt;BR /&gt;resistance of -40 should be sufficient.&lt;BR /&gt;&lt;BR /&gt;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;BR /&gt;Thanks,&lt;BR /&gt;&lt;BR /&gt;Ted&lt;BR /&gt;</description>
      <pubDate>Thu, 26 Feb 2009 10:43:39 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Specific-Stiff-ODE-Problem/m-p/897890#M11044</guid>
      <dc:creator>ted_kord</dc:creator>
      <dc:date>2009-02-26T10:43:39Z</dc:date>
    </item>
    <item>
      <title>Re: Specific Stiff ODE Problem</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Specific-Stiff-ODE-Problem/m-p/897891#M11045</link>
      <description>Hi Ted,&lt;BR /&gt;&lt;BR /&gt;Do you have initial condition Y(t=0)?&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;-Sergey G&lt;BR /&gt;</description>
      <pubDate>Thu, 26 Feb 2009 12:16:02 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Specific-Stiff-ODE-Problem/m-p/897891#M11045</guid>
      <dc:creator>Sergey_G_Intel</dc:creator>
      <dc:date>2009-02-26T12:16:02Z</dc:date>
    </item>
    <item>
      <title>Re: Specific Stiff ODE Problem</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Specific-Stiff-ODE-Problem/m-p/897892#M11046</link>
      <description>Y1 = Y2 = Y3 = Y4 = Y5 = 0.2;&lt;BR /&gt;&lt;BR /&gt;Although, this is not set in stone.&lt;BR /&gt;&lt;BR /&gt;Arbitrary values less than 1 are okay.&lt;BR /&gt;&lt;BR /&gt;Ted&lt;BR /&gt;</description>
      <pubDate>Thu, 26 Feb 2009 13:36:55 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Specific-Stiff-ODE-Problem/m-p/897892#M11046</guid>
      <dc:creator>ted_kord</dc:creator>
      <dc:date>2009-02-26T13:36:55Z</dc:date>
    </item>
    <item>
      <title>Re: Specific Stiff ODE Problem</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Specific-Stiff-ODE-Problem/m-p/897893#M11047</link>
      <description>&lt;DIV style="margin:0px;"&gt;Hi Ted,&lt;BR /&gt;&lt;BR /&gt;Ive created a small code that computes the solution to your ODE system:&lt;BR /&gt;&lt;BR /&gt;#include &lt;IOSTREAM&gt;&lt;BR /&gt;#include &lt;CSTDLIB&gt;&lt;BR /&gt;#include &lt;CMATH&gt;&lt;BR /&gt;#include "intel_ode.h"&lt;BR /&gt;using namespace std;&lt;BR /&gt;&lt;BR /&gt;double resistance=-40.0;&lt;BR /&gt;double a = 36.367689741213006 * exp(0.055398582982867296 * resistance); &lt;BR /&gt;double b = 0.28447798136999997 * exp(-0.02159796106832056 * resistance); &lt;BR /&gt;double c = 176.39278458673601 * exp(0.055398582982867296 * resistance); &lt;BR /&gt;double d = -4.6565444211489995 * exp(-0.036607982538678523 * resistance); &lt;BR /&gt;double e = 1334.3934962347917 * exp(-0.030581515065542283 * resistance); &lt;BR /&gt;double f = 5003.889182919519 * exp(0.018865463394165619 * resistance); &lt;BR /&gt;double g = e*b/f; &lt;BR /&gt;&lt;BR /&gt;void rhs (int *n, double *t, double *y, double *rhs) {&lt;BR /&gt;rhs[0] = (d * y[1])-(c * y[0]);&lt;BR /&gt;rhs[1] = -((d + 2.172) * y[1])+(c * y[0])+(1.077 * y[2]);&lt;BR /&gt;rhs[2] = -((1.077 + a + a) * y[2]) + (2.172 * y[1]) + (b * y[3]) + (g * y[4]);&lt;BR /&gt;rhs[3] = -((b + f) * y[3]) + (a * y[2]) + (e * y[4]);&lt;BR /&gt;rhs[4] = -((g + e) * y[4]) + (a * y[2]) + (f * y[3]);&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;int main(){&lt;BR /&gt;&lt;BR /&gt;int ipar[128];&lt;BR /&gt;int n=5, ierr;&lt;BR /&gt;int kd[5];&lt;BR /&gt;double t=0.0, t_end=6100.0, ti=0.02;&lt;BR /&gt;double y[5], h=1.0e-7, hm=1.0e-14, ep=1.0e-3, tr=1.0e-3, *dpar;&lt;BR /&gt;void *jacmat=NULL;//dummy at the moment &lt;BR /&gt;&lt;BR /&gt;cout&amp;lt;&amp;lt;"Starting computations...n";&lt;BR /&gt;for (int i=0;i&amp;lt;128;i++) ipar&lt;I&gt;=0;&lt;BR /&gt;&lt;BR /&gt;dpar=(double*)malloc((7+2*n)*n*sizeof(double));&lt;BR /&gt;//ipar[2]=1; //Commented out as solver exits for t=0.02*k anyway&lt;BR /&gt;&lt;BR /&gt;for (int i=0;i&amp;lt;5;i++) y&lt;I&gt;=0.2;&lt;BR /&gt;&lt;BR /&gt;int steps=(int)(t_end/ti);&lt;BR /&gt;cout&amp;lt;&amp;lt;"Performing "&amp;lt;&lt;STEPS&gt;&amp;lt;&amp;lt;" steps with dodesoln";&lt;BR /&gt;for (int k=0;k&lt;STEPS&gt;&lt;/STEPS&gt;t=k*ti;&lt;BR /&gt;t_end=(k+1)*ti;&lt;BR /&gt;do {&lt;BR /&gt; dodesol(ipar,&amp;amp;n,&amp;amp;t,&amp;amp;t_end,y,rhs,jacmat,&amp;amp;h,&amp;amp;hm,&amp;amp;ep,&amp;amp;tr,dpar,kd,&amp;amp;ierr);&lt;BR /&gt; if (ierr) {&lt;BR /&gt; cout&amp;lt;&amp;lt;"dodesol exited with error "&amp;lt;&lt;IERR&gt;&amp;lt;&amp;lt;"n";&lt;BR /&gt; }&lt;BR /&gt;} while (t&lt;T_END&gt;&lt;/T_END&gt;if (!((k+1)%5000)) {&lt;BR /&gt; cout&amp;lt;&amp;lt;"At time t="&amp;lt;&lt;T&gt;&amp;lt;&amp;lt;" the following solution obtained:n";&lt;BR /&gt; cout&amp;lt;&amp;lt;"y[0]="&amp;lt;&lt;Y&gt;&lt;/Y&gt; cout&amp;lt;&amp;lt;"y[1]="&amp;lt;&lt;Y&gt;&lt;/Y&gt; cout&amp;lt;&amp;lt;"y[2]="&amp;lt;&lt;Y&gt;&lt;/Y&gt; cout&amp;lt;&amp;lt;"y[3]="&amp;lt;&lt;Y&gt;&lt;/Y&gt; cout&amp;lt;&amp;lt;"y[4]="&amp;lt;&lt;Y&gt;&lt;/Y&gt;}&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;system("PAUSE");&lt;BR /&gt;return 0;&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;It computes the solution at time tk=0.02*k, k=1,,305000. It prints the solution at time tj=100.0*j, j=1,..,61. In a couple of seconds on my laptop, Im getting the solution at time t=6100.0.&lt;BR /&gt;At time t=6100 the following solution obtained:&lt;BR /&gt;y[0]=-0.052425&lt;BR /&gt;y[1]=0.050077&lt;BR /&gt;y[2]=0.100991&lt;BR /&gt;y[3]=0.593447&lt;BR /&gt;y[4]=0.30791&lt;BR /&gt;&lt;BR /&gt;As you can see, there are no NaNs or numbers like 1.0e+305. Could you please verify that the program computes the solution you need? Thank you!&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;-Sergey G&lt;BR /&gt;&lt;/T&gt;&lt;/IERR&gt;&lt;/STEPS&gt;&lt;/I&gt;&lt;/I&gt;&lt;/CMATH&gt;&lt;/CSTDLIB&gt;&lt;/IOSTREAM&gt;&lt;/DIV&gt;</description>
      <pubDate>Fri, 27 Feb 2009 04:38:35 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Specific-Stiff-ODE-Problem/m-p/897893#M11047</guid>
      <dc:creator>Sergey_G_Intel</dc:creator>
      <dc:date>2009-02-27T04:38:35Z</dc:date>
    </item>
    <item>
      <title>Re: Specific Stiff ODE Problem</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Specific-Stiff-ODE-Problem/m-p/897894#M11048</link>
      <description>Hi Sergey&lt;BR /&gt;&lt;BR /&gt;Thanks for this. Works fine at resistance = -40.0. However, when the resistance is set to -80, it hangs. Same thing happens at other resistance values, i.e. -70, etc.&lt;BR /&gt;&lt;BR /&gt;I'm tearing my hair out:)&lt;BR /&gt;&lt;BR /&gt;Thanks &lt;BR /&gt;&lt;BR /&gt;Ted&lt;BR /&gt;</description>
      <pubDate>Fri, 27 Feb 2009 07:13:12 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Specific-Stiff-ODE-Problem/m-p/897894#M11048</guid>
      <dc:creator>ted_kord</dc:creator>
      <dc:date>2009-02-27T07:13:12Z</dc:date>
    </item>
    <item>
      <title>Re: Specific Stiff ODE Problem</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Specific-Stiff-ODE-Problem/m-p/897895#M11049</link>
      <description>Hi Sergey&lt;BR /&gt;&lt;BR /&gt;Update.&lt;BR /&gt;It seems like any resistance vlaues more positive than -40, i.e -39, -38 , .... work fine. Resistance more negative than -40, i.e -41, -42, ....-50,....... don't.&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;&lt;BR /&gt;Ted&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 27 Feb 2009 07:36:22 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Specific-Stiff-ODE-Problem/m-p/897895#M11049</guid>
      <dc:creator>ted_kord</dc:creator>
      <dc:date>2009-02-27T07:36:22Z</dc:date>
    </item>
    <item>
      <title>Re: Specific Stiff ODE Problem</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Specific-Stiff-ODE-Problem/m-p/897896#M11050</link>
      <description>&lt;DIV style="margin:0px;"&gt;Hi Ted,&lt;BR /&gt;&lt;BR /&gt;It looks like your system has a solution growing up to infinity for resistances &amp;lt;=-41. You mentioned once that your real system has variable parameters. May be, this is the only way to keep solution from growing too far, e.g., having resistance &amp;lt;-40 for a short period of time. Besides, I wonder why the equation for Y3 has the form:&lt;BR /&gt;dY3 = -((1.077 + a + a) * Y3) + (2.172 * Y2) + (b * Y4) + (g * Y5)&lt;BR /&gt;with (..+a+a). Anything special about it? &lt;BR /&gt;&lt;BR /&gt;Anyway, I'll try to lookif anythingcan be done here. You can verify once again that the system is correct and that it can stay with resistances below -40 for a long while. &lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;-Sergey G&lt;/DIV&gt;</description>
      <pubDate>Fri, 27 Feb 2009 08:26:57 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Specific-Stiff-ODE-Problem/m-p/897896#M11050</guid>
      <dc:creator>Sergey_G_Intel</dc:creator>
      <dc:date>2009-02-27T08:26:57Z</dc:date>
    </item>
    <item>
      <title>Re: Specific Stiff ODE Problem</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Specific-Stiff-ODE-Problem/m-p/897897#M11051</link>
      <description>&lt;DIV style="margin:0px;"&gt;
&lt;DIV id="quote_reply" style="width: 100%; margin-top: 5px;"&gt;
&lt;DIV style="margin-left:2px;margin-right:2px;"&gt;Hi Sergey&lt;BR /&gt;&lt;BR /&gt;Thanks. &lt;SPAN style="text-decoration: underline;"&gt;If anything can be done for the case, resistance &amp;lt; -40.8, I shall be eternally in your debt&lt;/SPAN&gt;. I've been working at this for two straight weeks and it finally seems like there's light at the end of the tunnel.&lt;BR /&gt;&lt;BR /&gt;No, there's nothing special about the equation for Y3. The (..a+a) arose during factorisation and I just decided to leave it like that (for no special reason). (2*a) is much more concise anyway.&lt;BR /&gt;&lt;BR /&gt;Meanwhile, I'll keep on running tests for resistance &amp;gt;= -40&lt;BR /&gt;&lt;BR /&gt;Thanks&lt;BR /&gt;&lt;BR /&gt;Ted&lt;BR /&gt;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;</description>
      <pubDate>Fri, 27 Feb 2009 08:58:28 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Specific-Stiff-ODE-Problem/m-p/897897#M11051</guid>
      <dc:creator>ted_kord</dc:creator>
      <dc:date>2009-02-27T08:58:28Z</dc:date>
    </item>
    <item>
      <title>Re: Specific Stiff ODE Problem</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Specific-Stiff-ODE-Problem/m-p/897898#M11052</link>
      <description>&lt;DIV style="margin:0px;"&gt;Hi Ted,&lt;BR /&gt;&lt;BR /&gt;It looks to me that your system is getting a positive eigenvalue (or an eigenvalue with positive real part, to be precise) around resistance -40.9. As the system is relatively simple, I'll try to check this in the near future. If this is the case, then there is no way for you to get bounded solution, sorry...&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;-Sergey G&lt;BR /&gt;&lt;/DIV&gt;</description>
      <pubDate>Fri, 27 Feb 2009 09:05:41 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Specific-Stiff-ODE-Problem/m-p/897898#M11052</guid>
      <dc:creator>Sergey_G_Intel</dc:creator>
      <dc:date>2009-02-27T09:05:41Z</dc:date>
    </item>
    <item>
      <title>Re: Specific Stiff ODE Problem</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Specific-Stiff-ODE-Problem/m-p/897899#M11053</link>
      <description>&lt;DIV style="margin: 0px; height: auto;"&gt;&lt;/DIV&gt;
&lt;DIV style="margin:0px;"&gt;Hi Ted,&lt;BR /&gt;&lt;BR /&gt;Ive estimated eigenvalues of your problem using Intel MKL LAPACK. As a result, for resistance=-40.8 Ive got that the eigenvalues of your system are:&lt;BR /&gt;&lt;BR /&gt;0: -9.32634+0i&lt;BR /&gt;1: -0.0462603+6.01633i&lt;BR /&gt;2: -0.0462603+-6.01633i&lt;BR /&gt;3: -1.06398e-013+0i&lt;BR /&gt;4: -6965.59+0i&lt;BR /&gt;&lt;BR /&gt;As you can see, the real parts of all eigenvalues are negative. This means that the system has bounded solution. When I set resistance to -40.9, Ive got the following set of eigenvalues:&lt;BR /&gt;&lt;BR /&gt;0: -9.2891+0i&lt;BR /&gt;1: 0.0431913+5.99626i&lt;BR /&gt;2: 0.0431913+-5.99626i&lt;BR /&gt;3: 5.6765e-013+0i&lt;BR /&gt;4: -6975.47+0i&lt;BR /&gt;&lt;BR /&gt;As you can see, there are 2 eigenvalues with positive real parts. Asymptotically, the solution of the system would behave as exp(0.043*t), which is unbounded function when t grows. This is what you see when trying to solve the system with resistance &amp;lt;-40.8 with our ODE solver.&lt;BR /&gt;&lt;BR /&gt;It looks that I cannot help you more with your ODE system as it is just unstable for certainvalues of parameter "resistance". Sorry, if this does not help you much&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;-Sergey G&lt;BR /&gt;&lt;/DIV&gt;</description>
      <pubDate>Fri, 27 Feb 2009 10:58:50 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Specific-Stiff-ODE-Problem/m-p/897899#M11053</guid>
      <dc:creator>Sergey_G_Intel</dc:creator>
      <dc:date>2009-02-27T10:58:50Z</dc:date>
    </item>
    <item>
      <title>Re: Specific Stiff ODE Problem</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Specific-Stiff-ODE-Problem/m-p/897900#M11054</link>
      <description>Hi Sergey&lt;BR /&gt;&lt;BR /&gt;That's very useful information. Thanks anyway for all the help. It's been very enlightening.&lt;BR /&gt;&lt;BR /&gt;Keep up the good work.&lt;BR /&gt;&lt;BR /&gt;Best regards&lt;BR /&gt;&lt;BR /&gt;Ted&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 27 Feb 2009 12:07:01 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Specific-Stiff-ODE-Problem/m-p/897900#M11054</guid>
      <dc:creator>ted_kord</dc:creator>
      <dc:date>2009-02-27T12:07:01Z</dc:date>
    </item>
    <item>
      <title>Re: Specific Stiff ODE Problem</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Specific-Stiff-ODE-Problem/m-p/897901#M11055</link>
      <description>&lt;DIV style="margin:0px;"&gt;Your are always welcome, Ted!&lt;BR /&gt;&lt;BR /&gt;Good luck!&lt;BR /&gt;&lt;BR /&gt;-Sergey G&lt;BR /&gt;&lt;BR /&gt;&lt;/DIV&gt;</description>
      <pubDate>Fri, 27 Feb 2009 12:18:08 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Specific-Stiff-ODE-Problem/m-p/897901#M11055</guid>
      <dc:creator>Sergey_G_Intel</dc:creator>
      <dc:date>2009-02-27T12:18:08Z</dc:date>
    </item>
  </channel>
</rss>

