File: README

package info (click to toggle)
yorick 2.2.03+dfsg-3
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 9,620 kB
  • ctags: 9,317
  • sloc: ansic: 85,521; sh: 1,665; cpp: 1,282; lisp: 1,234; makefile: 1,034; fortran: 19
file content (31 lines) | stat: -rw-r--r-- 1,523 bytes parent folder | download | duplicates (9)
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

				 Drat

   A Yorick package which integrates the transport equation through
			 a quadrilateral mesh


This is a very specialized Yorick package which integrates the
transport equation through a quadrilateral mesh in cylindrical
coordinates.  It is unlikely to be of use to anyone outside my own
narrow specialty (laser fusion research).  I provide it as an example
of a package which "knows" about the interpreter, as opposed to the
Math package, which is a mere installation of LAPACK subroutines into
Yorick.  This "knowledge" is contained in the file ydrat.c, which you
can study if you need to do something similar.

In particular, a new data type -- the "DratMesh" -- is added to the
Yorick interpreter.  This encapsulates the "FullMesh" data structure
which is maintained by the rad-transport package.  This data structure
could not be easily made available to interpreted code, since the
rad-transport code reallocates some of the variable sized data
associated with the "FullMesh"; it wouldn't be nice to attempt to
resize an array the interpreter owned, nor would it be easy to
communicate such a change back to an interpreted data structure.

Also, the interface routines take care of getting their arguments off
of Yorick's stack, which in principle allows them to have a more
general syntax than interpreted functions.  In this case, the only
benefit is that no interpreted "wrapper" routines are required to fix
up the data types and dimensions of input variables before the
compiled routines are called.