3 /* GridRPC - Fake Grid RPC thingy doing matrix multiplications (as expected)*/
5 /* Copyright (c) 2005 Martin Quinson. All rights reserved. */
7 /* This program is free software; you can redistribute it and/or modify it
8 * under the terms of the license (GNU LGPL) which comes with this package. */
12 XBT_LOG_NEW_DEFAULT_CATEGORY(MatMult,"Messages specific to this example");
14 /* register messages which may be sent and their payload
15 (common to client and server) */
16 void mmrpc_register_messages(void) {
17 gras_datadesc_type_t matrix_type, request_type;
19 matrix_type=gras_datadesc_matrix(gras_datadesc_by_name("double"),
21 request_type=gras_datadesc_array_fixed("s_matrix_t(double)[2]",matrix_type,2);
22 // gras_datadesc_by_name("xbt_matrix_t(double)"),2);
23 // request_type=gras_datadesc_ref("matrix_t(double)[2]",request_type);
25 gras_msgtype_declare("answer", matrix_type);
26 gras_msgtype_declare("request", request_type);