pbdDEMO::nc4_dmat can not run

21 views
Skip to first unread message

Dale Wang

unread,
Oct 9, 2014, 9:24:21 PM10/9/14
to rbigdatap...@googlegroups.com
Hi,

I try to run the pbdDEMO::nc4_dmat, but failed. I ran the demo with the following command:

    mpirun -np 4 Rscript -e "demo('nc4_dmat','pbdDEMO',ask=F,echo=F)"

But it failed and I got the following error message:

Error in eval(expr, envir, enclos) :
  could not find function "ncvar_put_dmat"
Calls: demo -> source -> withVisible -> eval -> eval
Execution halted

I look through the source code of pbdDEMO, and find pbdDEMO provide that function in the file '/pbdDEMO/R/ncvar_2d.r'. So I modify the demo source code file nc4_dmat.r, and add the following line in the head of code:

source("/home/hadoop/wzk/r-pbd/pbdDEMO/R/ncvar_2d.r")

to make the demo include those function definition. Then I run the demo and fail again with the error message :

Error in initialize(value, ...) :
  invalid name for slot of class \u201cddmatrix\u201d: CTXT
Calls: demo ... eval -> ncvar_get_dmat -> new -> initialize -> initialize
Execution halted


I install all the pbd* pakages from CRAN. I have checked my installation of pbdNCDF4 with the following demo:

mpirun -np 4 ~/bin/R-3.1.1/bin/Rscript -e "demo('nc4_parallel','pbdDEMO',ask=F,echo=F)"

and this demo is OK.

Then the question comes: what is wrong with demo nc4_dmat?  Thank you very much.

Best wishes,
                                      Dale Wang

Wei-Chen Chen

unread,
Oct 9, 2014, 9:59:00 PM10/9/14
to rbigdatap...@googlegroups.com
Nothing wrong in nc4_dmat, but
1. ncvar_put_dmat and ncvar_get_dmat are missing from namespace, and
2. CTXT (new() in ncvar_get_dmat()) is abandoned and replaced by ICTXT.
They will be fixed.

Dale Wang

unread,
Oct 15, 2014, 7:51:05 AM10/15/14
to rbigdatap...@googlegroups.com
Thank you for your reply. Does the source code on github fix the problem? I want to try this method these days~
                                                                         Dale

在 2014年10月10日星期五UTC+8上午9时59分00秒,Wei-Chen Chen写道:

Wei-Chen Chen

unread,
Oct 17, 2014, 9:57:41 PM10/17/14
to rbigdatap...@googlegroups.com
Done. Drew will please push to RBigData.

Dale Wang

unread,
Oct 17, 2014, 10:33:45 PM10/17/14
to rbigdatap...@googlegroups.com
Thank you Wei-Chen and Drew, and I will try it on our platform.


在 2014年10月18日星期六UTC+8上午9时57分41秒,Wei-Chen Chen写道:
Reply all
Reply to author
Forward
0 new messages