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