X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/c23c7c364bc717def83b5a90706bf63c6910943c..2d3f7295504ccdb4ec0662e80344870128d3cc7f:/examples/gras/mmrpc/mmrpc_common.c diff --git a/examples/gras/mmrpc/mmrpc_common.c b/examples/gras/mmrpc/mmrpc_common.c index 27dc89ef42..65719cc2b0 100644 --- a/examples/gras/mmrpc/mmrpc_common.c +++ b/examples/gras/mmrpc/mmrpc_common.c @@ -16,25 +16,14 @@ XBT_LOG_NEW_DEFAULT_CATEGORY(MatMult,"Messages specific to this example"); void mmrpc_register_messages(void) { gras_datadesc_type_t matrix_type, request_type; - matrix_type=gras_datadesc_by_symbol(s_matrix); - request_type=gras_datadesc_array_fixed("matrix_t[2]",matrix_type,2); + matrix_type=gras_datadesc_matrix(gras_datadesc_by_name("double"), + NULL); + request_type=gras_datadesc_array_fixed("s_matrix_t(double)[2]",matrix_type,2); + // gras_datadesc_by_name("xbt_matrix_t(double)"),2); + // request_type=gras_datadesc_ref("matrix_t(double)[2]",request_type); gras_msgtype_declare("answer", matrix_type); gras_msgtype_declare("request", request_type); } -void mat_dump(matrix_t *mat, const char* name) { - int i,j; - - printf(">>> Matrix %s dump (%d x %d)\n",name,mat->lines,mat->rows); - for (i=0; ilines; i++) { - printf(" "); - for (j=0; jrows; j++) - printf(" %.2f",mat->ctn[i*mat->rows + j]); - printf("\n"); - } - printf("<<< end_of_matrix %s dump\n",name); -} - -