Part of Slepp's ProjectsPastebinTURLImagebinFilebin
Feedback -- English French German Japanese
Create Upload Newest Tools Donate
Sign In | Create Account

Advertising

ncilfone
Monday, July 16th, 2012 at 9:12:56am MDT 

  1. double Total = 0;
  2.  
  3.     Pos p;
  4.     for(p.x = 0; p.x < nextGrid.getRange().x; ++p.x)
  5.         for(p.y = 0; p.y < nextGrid.getRange().y; ++p.y)
  6.         {
  7.            
  8.  
  9. //            // Degradation of sTNF
  10. //            nextGrid.setTNF(p, nextGrid.TNF(p) * TNFdegRate);
  11.  
  12. //            Total += nextGrid.TNF(p);
  13.  
  14.             // Degradation of sTNF
  15.             nextGrid.incTNF(p, (-1.0 * nextGrid.TNF(p) * _PARAM(PARAM_GR_K_DEG) * dt));
  16.             Total += nextGrid.TNF(p);
  17.            
  18.             // Degradation of il10
  19.             nextGrid.incil10(p, (-1.0 * nextGrid.il10(p) * _PARAM(PARAM_GR_I_K_DEG) * dt));
  20.            
  21.             // Degradation of CCL2
  22.             nextGrid.incCCL2(p, (-1.0 * nextGrid.CCL2(p) * _PARAM(PARAM_GR_CHEMOKINE_K_DEG) * dt));
  23.            
  24.             // Degradation of CCL5
  25.             nextGrid.incCCL5(p, (-1.0 * nextGrid.CCL5(p) * _PARAM(PARAM_GR_CHEMOKINE_K_DEG) * dt));
  26.            
  27.             // Degradation of CXCL9
  28.             nextGrid.incCXCL9(p, (-1.0 * nextGrid.CXCL9(p) * _PARAM(PARAM_GR_CHEMOKINE_K_DEG) * dt));
  29.            
  30.             if (_PARAM(PARAM_GR_SEC_RATE_ATTRACTANT) != 0)
  31.             {
  32.                 // Degradation of MacAttractant
  33.                 nextGrid.incmacAttractant(p, (-1.0 * nextGrid.macAttractant(p) * _PARAM(PARAM_GR_CHEMOKINE_K_DEG) * dt));
  34.             }
  35.            
  36.             // Unbinding of sTNF from ShedTNFR2
  37.             nextGrid.incshedTNFR2(p, (-1.0 * nextGrid.shedTNFR2(p) * _PARAM(PARAM_GR_KD2) * _PARAM(PARAM_GR_K_ON2) * dt));
  38.            
  39.             // Addition of sTNF from unbinding from ShedTNFR2
  40.             nextGrid.incTNF(p, (1.0 * nextGrid.shedTNFR2(p) * _PARAM(PARAM_GR_KD2) * _PARAM(PARAM_GR_K_ON2) * dt));
  41.  
  42.         }
  43.     std::cout << "Total Conc: " << Total << std::endl;

advertising

Update the Post

Either update this post and resubmit it with changes, or make a new post.

You may also comment on this post.

update paste below
details of the post (optional)

Note: Only the paste content is required, though the following information can be useful to others.

Save name / title?

(space separated, optional)



Please note that information posted here will expire by default in one month. If you do not want it to expire, please set the expiry time above. If it is set to expire, web search engines will not be allowed to index it prior to it expiring. Items that are not marked to expire will be indexable by search engines. Be careful with your passwords. All illegal activities will be reported and any information will be handed over to the authorities, so be good.

fantasy-obligation fantasy-obligation