isAccelerated

Class: SimBiology.export.Model

Determine whether an exported SimBiology model is accelerated

Syntax

tf = isAccelerated(model)
tf = isAccelerated(model,computerType)

Description

tf = isAccelerated(model) returns true if model is accelerated for the current type of computer, and false otherwise.

tf = isAccelerated(model,computerType) returns true if model is accelerated for the specified computer type.

Input Arguments

model

SimBiology.export.Model object.

computerType

String specifying a computer type. You can specify any valid archstr supported by the function computer.

Output Arguments

tf

Logical value true if model is accelerated for the current computer type, or computer type specified by computerType. Logical value false if the exported model is not accelerated for the specified computer type.

Examples

expand all

Load a sample SimBiology model object, and export.

modelObj = sbmlimport('lotka');
em = export(modelObj)
em = 

  Model with properties:

           Name: 'lotka'
     ExportTime: '12-Dec-2012 15:20:13'
    ExportNotes: ''

Accelerate the exported model.

accelerate(em);
em.isAccelerated
ans =

     1

The logical value 1 indicates that the exported model is accelerated.