Mario Rodriguez wrote:
> Hello,
>
> I get the following results (clisp and sbcl):
>
> (%i1) m:makelist(k,k,105)$
> (%i2) save("filename",m) $
> (%i3) load("filename") $
> loadfile: failed to load filename
> -- an error. To debug this try: debugmode(true);
>
>
> This is the contents of filename. List m has not been completely saved
> and load then fails.
>
> ;;; -*- Mode: LISP; package:maxima; syntax:common-lisp; -*-
> (in-package :maxima)
> (DSKSETQ $M
> '((MLIST SIMP) 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 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54
> 55 56 57 58 59 60 61 62 63
> 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86
> 87 88 89 90 91 92 93 94 95
> 96 97 98 99 ...))
> (ADD2LNC '$M $VALUES)
>
>
> I think this problem didn't arise in the past.
>
> --
> Mario
I had similar problem when i was doing computations with maxima 2 years ago.
I think you need to close maxima to flush all buffers then the file will be
complete, and you can load it. Perhaps there is a command to flush IO
buffers, but on any Unix machine IO is buffered until you call flush()
or terminate the program.
--
Michel Talon