Overview
| Comment: | Just code aesthetics. |
|---|---|
| Downloads: | Tarball | ZIP archive |
| Timelines: | family | ancestors | descendants | both | origin/master | trunk |
| Files: | files | file ages | folders |
| SHA3-256: |
b16543c447447ce2c1639cd93620159e |
| User & Date: | geraint@users.sourceforge.net on 2001-07-25 04:50:29.000 |
| Other Links: | branch diff | manifest | tags |
Context
|
2001-07-25
| ||
| 06:27:08 | Fixed mistake in computing entropy flow check-in: 558ca53629 user: gawthrop@users.sourceforge.net tags: origin/master, trunk | |
| 04:50:29 | Just code aesthetics. check-in: b16543c447 user: geraint@users.sourceforge.net tags: origin/master, trunk | |
|
2001-07-24
| ||
| 22:42:59 | Fixes problem when lbl.txt does not end with newline. check-in: d3f2fec898 user: geraint@users.sourceforge.net tags: origin/master, trunk | |
Changes
Modified mttroot/mtt/lib/cc/mtt_euler.cc
from [181b91b994]
to [43d68034de].
1 2 3 4 5 6 7 8 9 10 11 12 13 |
#include <octave/oct.h>
#ifdef STANDALONE
ColumnVector Fmtt_euler ( ColumnVector &x,
const ColumnVector &dx,
const double &ddt,
const int &Nx,
const ColumnVector &openx)
{
#else // !STANDALONE
DEFUN_DLD (mtt_euler, args, ,
"euler integration method")
{
| > > > > > > < | | | < < < < < < < | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 |
#include <octave/oct.h>
#ifdef OCTAVE_DEV
#define VECTOR_VALUE column_vector_value
#else // !OCTAVE_DEV
#define VECTOR_VALUE vector_value
#endif // OCTAVE_DEV
#ifdef STANDALONE
ColumnVector Fmtt_euler ( ColumnVector &x,
const ColumnVector &dx,
const double &ddt,
const int &Nx,
const ColumnVector &openx)
{
#else // !STANDALONE
DEFUN_DLD (mtt_euler, args, ,
"euler integration method")
{
ColumnVector x = args(0).VECTOR_VALUE ();
const ColumnVector dx = args(1).VECTOR_VALUE ();
const double ddt = args(2).double_value ();
const int Nx = static_cast<int> (args(3).double_value ());
const ColumnVector openx = args(4).VECTOR_VALUE ();
#endif // STANDALONE
register int i, n;
n = Nx;
for (i = 0; i < Nx; i++)
{
|
| ︙ | ︙ |
Modified mttroot/mtt/lib/cc/mtt_implicit.cc
from [49937b29a2]
to [99ad6e1348].
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 |
#include <octave/oct.h>
#include <octave/xdiv.h>
#ifdef STANDALONE
ColumnVector Fmtt_implicit ( ColumnVector &x,
ColumnVector &dx,
Matrix &AA,
ColumnVector &AAx,
const double &t,
const int &Nx,
const ColumnVector &openx)
{
#else // !STANDALONE
DEFUN_DLD (mtt_implicit, args, ,
"implicit integration method")
{
| > > > > > > < | < < < < < < < < | | | < | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 |
#include <octave/oct.h>
#include <octave/xdiv.h>
#ifdef OCTAVE_DEV
#define VECTOR_VALUE column_vector_value
#else // !OCTAVE_DEV
#define VECTOR_VALUE vector_value
#endif // OCTAVE_DEV
#ifdef STANDALONE
ColumnVector Fmtt_implicit ( ColumnVector &x,
ColumnVector &dx,
Matrix &AA,
ColumnVector &AAx,
const double &t,
const int &Nx,
const ColumnVector &openx)
{
#else // !STANDALONE
DEFUN_DLD (mtt_implicit, args, ,
"implicit integration method")
{
ColumnVector x = args(0).VECTOR_VALUE ();
ColumnVector dx = args(1).VECTOR_VALUE ();
Matrix AA = args(2).matrix_value ();
ColumnVector AAx = args(3).VECTOR_VALUE ();
const double t = args(4).double_value ();
const int Nx = (int) (args(5).double_value ());
const ColumnVector openx = args(6).VECTOR_VALUE ();
#endif // STANDALONE
register int row, col;
for (row = 0; row < Nx; row++)
{
if (openx (row) > 0.5)
|
| ︙ | ︙ |