Changes between Version 19 and Version 20 of Piernik

Show
Ignore:
Timestamp:
03/10/13 14:38:57 (12 years ago)
Author:
mmamonski
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Piernik

    v19 v20  
    219219 
    220220== Synchronizing delta timesteps == 
    221 Until now we silently omitted one important aspect of the PIERNIK simulaitons: the delta timestep is not constant and depends on the current state of both modules: MHD and MC. In the original code the minimum of the  dt,,mc,, and dt,,mhd,, values were always chosen.  
    222 {{{ 
    223  
     221Until now we silently omitted one important aspect of the PIERNIK simulaitons: the delta timestep is not constant and depends on the current state of both modules: MHD and MC. In the original code the minimum of the  dt,,mc,, and dt,,mhd,, values were always chosen. In order to do the same in MUSCLE variant of FORTRAN code, we must define two new conduits: one for sending dt,,mc,, from MC to MHD and second one for sending back the final dt. The conduits definition looks now as follows: 
     222{{{ 
     223cs.attach('mhd' => 'mc') { 
     224        tie('rho_gas', 'rho_gas') 
     225        tie('m_gas', 'm_gas') 
     226        tie('dt_final', 'dt_final') 
     227} 
     228 
     229cs.attach('mc' => 'mhd') { 
     230        tie('dt_mc', 'dt_mc') 
     231} 
    224232}}} 
    225233== MPI enabling ==