Attempt to call undefined procedure/function: 'STRSPLIT' when using IDL7.1 in Pencil Code

1,126 views
Skip to first unread message

Bibby

unread,
Mar 27, 2013, 9:35:11 AM3/27/13
to pencil-co...@googlegroups.com
Hello everyone, 

I have a quick question about using IDL7.1 in Pencil Code. The code works well for the sample /pencil-code/samples/conv-slab.
But there are some problems when I’m trying to visualize the stratification with IDL.

IDL> .r r
% Compiled module: PARAM2.
% Compiled module: $MAIN$.
% Compiled module: UNDEFINE.
Reading param2.nml..
Reading ./data/dim.dat...
Reading ./data/param.nml...
% Compiled module: RUNNING_GDL.
% Attempt to call undefined procedure/function: 'STRSPLIT'.
% Execution halted at: PC_VARCONTENT 42
/home/ht/pencil-code/idl/read/pc_varcontent.pro
% $MAIN$ 35 /home/ht/pencil-code/idl/r.pro

IDL> .run ts
% Compiled module: PARSE_TSHEADER.
% Compiled module: LIST_IDX.
% Compiled module: IN_LIST.
% Compiled module: $MAIN$.
% You compiled a main program while inside a procedure. Returning.
% Attempt to call undefined procedure/function: 'STRSPLIT'.
% Execution halted at: INPUT_TABLE 149
/home/ht/pencil-code/idl/lib/IO/input_table.pro
% $MAIN$ 84 /home/ht/pencil-code/idl/ts.pro

The PATH and IDL_PATH are set to:
PATH=/usr/lib/lightdm/lightdm:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games
:/home/ht/pencil-code/bin:/home/ht/pencil-code/utils:/home/ht/pencil-code/utils/axel
IDL_PATH=$./idl:../idl:+$PENCIL_HOME/idl:./data:./data/idl:/usr/local/itt/idl/idl71/bin
 
The commands IDL>.r start and IDL>pc_read work well but IDL>.r r and IDL>.run ts have some problems.
So it really confuses me. I would really appreciate your kind help.

All the best,
    Bibby

KIS Uni-Freiburg

unread,
Mar 27, 2013, 9:49:56 AM3/27/13
to pencil-co...@googlegroups.com

Hello Bibby,

> But there are some problems when I’m trying to visualize the
> stratification with IDL.
>
> IDL> .r r

As far as I know, this script is no longer maintained or supported.
You can try ".r pc_gui". Otherwise check the "pc_read_var*.pro" files.

> IDL> .run ts

This script is also no longer maintained.
You can try "IDL> pc_show_ts" for a nice GUI.


On the other hand, if ".r strsplit" doesn't work for you, the IDL_PATH
seems to be incomplete! You should have a "strsplit.pro" inside your IDL
directory: "idl71/lib/strsplit.pro".

> The PATH and IDL_PATH are set to:
> PATH=/usr/lib/lightdm/lightdm:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games
> :/home/ht/pencil-code/bin:/home/ht/pencil-code/utils:/home/ht/pencil-code/utils/axel

PATH is irrelevant to IDL.

> IDL_PATH=$./idl:../idl:
> +$PENCIL_HOME/idl:./data:./data/idl:/usr/local/itt/idl/idl71/bin

Please *replace* "idl71/bin" with "idl71/lib" and add a "+" in front:

IDL_PATH=+./idl:+$PENCIL_HOME/idl:./data:+./data/idl:
+/usr/local/itt/idl/idl71/lib

Best regards,

Philippe.


Bibby

unread,
Mar 28, 2013, 9:21:39 AM3/28/13
to pencil-co...@googlegroups.com
Hi Philippe,

Thank you so much for your kind reply! According to your suggestions, we have successfully
solved the problems:-)

Thanks for your time!

All the best,
   Bibby
Reply all
Reply to author
Forward
0 new messages