Example b211o: 3D Explicit LR2 - MP Speed Up Testing

Explict Luo-Rudy phase 2 over a small, one element, cube. Used to test multiprocessing speed-up, the results of which can be viewed here


The comfile run by this example is as follows:

# Explict Luo-Rudy phase 2 over a small, one element,
# cube. Used to test MP-SpeedUp.

#Set up problem size
fem define para;r;cube;example

#Define geometry of the problem
fem define coor;r;cube;example
fem define node;r;cube;example
fem define base;r;cube;example
fem define elem;r;cube;example
fem define fibr;d
fem define elem;r;cube;example fibre
fem define grid;r;cube;example
fem update grid geometry
fem update grid metric
#  Some useful groups
fem group grid external as boundary
fem group grid grid 92,93,101 as stimulus_site

#Define equation to solve
#  Define monodomain with LR2 kinetics
fem define equa;r;lr;example

#  Loop over the number of threads used to solve the problem

# Command updated by fixcom.sh on Wed Aug 23 17:49:56 NZT 2000
# Old command: DO NUM_THREADS=1,2,4,8,16
for $NUM_THREADS ( 1,2,4,8,16 ) 
{


#Define material properties for the problem

#  Define cellular material properties
  fem define cell;r;lr;example
#    Define cell variants and spatially varying material parameters
  fem define mate;r;cube;example cell
#  Define continuum material parameters
  fem define mate;r;cube;example
  fem update grid material

#Define continuum initial conditions
#  Set no-flux boundary condition
  fem define init;r;cube;example

#Define the explicit solve, using the adams integrator
  fem define solv;r;test;example

#Solve the problem

#  Set the number of threads to be used
  set num_threads $NUM_THREADS

#  Output information used to test speed up
  list num_threads
  list time

#  Solve for the current time
  fem solve to 2

#  Output information used to test speed up
  list time


# Command updated by fixcom.sh on Wed Aug 23 17:49:56 NZT 2000
# Old command: ENDDO
}



Files used by this example are:

Name                        Modified     Size

example_b211o.com 20-Nov-2001 1.7k cube.ipbase 10-Apr-2000 2.4k cube.ipcoor 10-Apr-2000 570 cube.ipelem 10-Apr-2000 404 cube.ipelfb 10-Apr-2000 233 cube.ipequa 26-May-2003 1.4k cube.ipexpo 10-Apr-2000 660 cube.ipgrid 06-Mar-2003 600 cube.ipinit 10-Apr-2000 213 cube.ipmatc 10-Apr-2000 642 cube.ipmate 10-Apr-2000 1.7k cube.ipnode 10-Apr-2000 1.8k cube.ippara 12-Nov-2002 5.9k cube.ipsolv 13-Apr-2007 1.8k cube.ipsolv.old 10-Apr-2000 1.4k draw.com 20-Nov-2001 3.2k lr.ipcell 10-Apr-2000 3.0k lr.ipequa 26-May-2003 1.4k movie.com 10-Apr-2000 445 mp_timing.test 10-Apr-2000 0 test.ipsolv 03-Oct-2001 1.3k test.ipsolv.old 10-Apr-2000 1.3k test_output.com_broken 10-Apr-2000 27 test_output_hpc.com_broken 10-Apr-2000 0

Download the entire example:

Name                                 Modified     Size

examples_b_b2_b21_b211_b211o.tar.gz 14-Apr-2007 11k

Html last generated: Sun Mar 6 05:51:09 2016

Input last modified: Fri Apr 13 10:38:10 2007


CMISS Help / Examples / b / b2 / b21 / b211 / b211o