octave-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Octave-bug-tracker] [bug #48025] read_namelist fails for complex values


From: ryusuke numata
Subject: [Octave-bug-tracker] [bug #48025] read_namelist fails for complex values
Date: Thu, 26 May 2016 11:33:49 +0000 (UTC)
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_9_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/50.0.2661.102 Safari/537.36

URL:
  <http://savannah.gnu.org/bugs/?48025>

                 Summary: read_namelist fails for complex values
                 Project: GNU Octave
            Submitted by: rnumata
            Submitted on: 2016年05月26日 11時33分47秒
                Category: Octave Forge Package
                Severity: 3 - Normal
                Priority: 5 - Normal
              Item Group: Incorrect Result
                  Status: None
             Assigned to: None
         Originator Name: 
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any
                 Release: 4.0.2
        Operating System: Mac OS

    _______________________________________________________

Details:

read_namelist and write_namelist in io are the function to read and write
Fortran namelist. When reading complex numbers read_namelist gives a syntax
error, and when writing write_namelist writes just real parts.

namelist_test.in and namelist_test.m are the sample to reproduce the problem.

A complex value in namelist consists of a pair of parentheses surrounding the
real and imaginary parts, separated by a comma. I've written a code to handle
this as given in the attached patch. I don't think it'a good code, but at
least it works for the test case.



    _______________________________________________________

File Attachments:


-------------------------------------------------------
Date: 2016年05月26日 11時33分47秒  Name: patch.io  Size: 1kB   By:
rnumata

<http://savannah.gnu.org/bugs/download.php?file_id=37272>
-------------------------------------------------------
Date: 2016年05月26日 11時33分47秒  Name: namelist_test.m  Size: 93B  
By: rnumata

<http://savannah.gnu.org/bugs/download.php?file_id=37273>
-------------------------------------------------------
Date: 2016年05月26日 11時33分47秒  Name: namelist_test.in  Size: 80B  
By: rnumata

<http://savannah.gnu.org/bugs/download.php?file_id=37274>

    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?48025>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]