La descarga está en progreso. Por favor, espere

La descarga está en progreso. Por favor, espere

Diference In Diferences D – I - D Natural disasters and their impact.

Presentaciones similares


Presentación del tema: "Diference In Diferences D – I - D Natural disasters and their impact."— Transcripción de la presentación:

1 Diference In Diferences D – I - D Natural disasters and their impact

2 D – I -D Status of the project The solution in the grid example What next?

3 Status of the project The project itself is very complex to get a good approach to put it into the grid in 2 weeks The project can be put it into the grid get better results less time more data We use the parametric job We will likely explore other types of work

4 The solution in the grid JobType = "Parametric"; Executable = "compilar.sh"; StdInput = "input_PARAM_"; InputSandbox = {"Matriz.c", "compilar.sh", "input_PARAM_"}; Parameters= 10; ParameterStep =1; ParameterStart = 1; StdOutput = "Matriz-_PARAM_.txt"; StdError = "MatrizError_PARAM_.txt"; OutputSandbox = {"Matriz-_PARAM_.txt", "MatrizError_PARAM_.txt"}; ShallowRetryCount = 1;

5 #include int main(){ int fa,ca,fb,cb,r,c,d; int ma[10][10],mb[10][10], mc[10][10];printf("Dame la dimension de la matriz A...\n"); printf("Da el numero de renglones: "); scanf("%d",&fa); printf("Da el numero de columnas: "); scanf("%d",&ca); printf("Lectura de la Matriz A: \n"); for (r=0 ; r<fa;r++) for(c=0; c<ca;c++){ printf("\n ma[%d,%d]:",r,c); scanf("%d",&ma[r][c]);}; printf("Dame la dimension de la matriz B...\n"); printf("Da el numero de renglones: ");scanf("%d",&fb); printf("Da el numero de columnas: "); scanf("%d",&cb); if(ca!=fb){ printf("\nEL NUMERO DE COLUMNAS DE LA PRIMERA ES DIFERENTE AL NUMERO DE FILAS DE LA SEGUNDA MATRIZ"); printf("\nEL PRODUCTO MATRICIAL NO ES POSIBLE DE REALIZAR\n"); exit(1);} printf("Lectura de la Matriz B: \n"); for (r=0 ; r<fb;r++) for(c=0; c<cb;c++){ printf("\n mb[%d,%d]:",r,c); scanf("%d",&mb[r][c]);}; printf("Multiplicando Matrices...... \n"); int a; for(a=0; a<fa; a++) for (r=0 ; r<cb;r++) for(c=0; c<ca;c++) mc[a][r]+=ma[a][c]*mb[c][r];

6 printf("Resultado: \n"); for (r=0 ; r<fa;r++){ for(c=0; c<cb;c++) printf(" %2d\t ",mc[r][c]); printf("\n"); } printf("\n"); exit(0); }

7 ABAB 3571577637982 25796317537975 8 9 04788960765 AB 3194 /tmp/jobOutput/fernando_sLX9QuIYvQ0Y2MU 5 7zrLsg/Node_1/Matriz-1.txt (76) 7

8 .../Matriz-1.txt ( 76) Matriz-2.txt (379)Matriz-3.txt(82).../Matriz-4.txt ( 75) Matriz-5.txt (374)Matriz-6.txt(75).../Matriz-7.txt ( 89) Matriz-8.txt (607)Matriz-9.txt(65)

9 What next? we are planning to do all the work of Alan Ricardo da Silva et al. in his work Computational Algorithm for Estimation of Panel Data Models with Two Fixed Effects (2008) into the next 7 months in order to it can be run on the grid.


Descargar ppt "Diference In Diferences D – I - D Natural disasters and their impact."

Presentaciones similares


Anuncios Google