annotate implementations/meredith/tests/import-raph-c-data.lisp @ 253:b5ffec94ae6d
some very sketchy Charm constituent code
author |
Jamie Forth <j.forth@gold.ac.uk> |
date |
Thu, 24 Feb 2011 11:23:18 +0000 |
parents |
6a3adca16910 |
children |
|
rev |
line source |
j@215
|
1 (cl:in-package #:amuse-meredith)
|
j@215
|
2
|
j@215
|
3 (asdf:oos 'asdf:load-op 'amuse-meredith)
|
j@215
|
4
|
j@251
|
5 (connect-to-database)
|
j@229
|
6
|
j@215
|
7 ;; Tell the database about the new implementation.
|
j@251
|
8 ;(amuse-database-admin:register-new-implementation *package*)
|
j@215
|
9
|
j@215
|
10 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
j@215
|
11 ;; Add the datasets to the database
|
j@215
|
12 (create-meredith-tables *amuse-database*)
|
j@215
|
13
|
j@229
|
14 (import-bach-inv+sin *amuse-database*) ; FIXME: return an identifier.
|
j@215
|
15
|
j@215
|
16 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
j@215
|
17 ;; Retrieve compositions
|
j@215
|
18 (defparameter *bach*
|
j@215
|
19 (get-composition (make-meredith-composition-identifier 1)))
|
j@215
|
20
|
j@215
|
21 (defparameter *bach-dataset*
|
j@215
|
22 (get-dataset (make-amuse-dataset-identifier 1)))
|
j@215
|
23
|
j@215
|
24 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
j@215
|
25 ;; Tidy up
|
j@215
|
26 ;;(drop-meredith-tables *amuse-database*)
|
j@215
|
27 (disconnect-from-database)
|