亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? az_comm.c

?? 并行解法器,功能強大
?? C
?? 第 1 頁 / 共 5 頁
字號:
/*==================================================================== * ------------------------ * | CVS File Information | * ------------------------ * * $RCSfile: az_comm.c,v $ * * $Author: tuminaro $ * * $Date: 2000/06/02 16:46:55 $ * * $Revision: 1.38 $ * * $Name:  $ *====================================================================*/#ifndef lintstatic char rcsid[] = "$Id: az_comm.c,v 1.38 2000/06/02 16:46:55 tuminaro Exp $";#endif/******************************************************************************* * Copyright 1995, Sandia Corporation.  The United States Government retains a * * nonexclusive license in this software as prescribed in AL 88-1 and AL 91-7. * * Export of this program may require a license from the United States         * * Government.                                                                 * ******************************************************************************//* System Include files */#include <stdlib.h>#include <stdio.h>#include <math.h>#include "az_aztec.h"#ifndef TRUE#define TRUE  1#define FALSE 0#endifint AZ_sys_msg_type = AZ_MSG_TYPE;/******************************************************************************//******************************************************************************//******************************************************************************/void AZ_exchange_bdry(double x[], int data_org[], int proc_config[])/*******************************************************************************  Routine to locally exchange the components of the vector "x". This routine  gathers the necessary components of the vector and then sends the required  "num_neighbors" messages. The messages which are received are placed  contiguously in the external_nodes part of x.  Author:          John N. Shadid, SNL, 1421  =======  Return code:     void  ============  Parameter list:  ===============  x:               Vector of unknowns defined on the current processor.                   Indirect addressing will be used to gather those unknowns                   that other processors need.  data_org:        Array containing information on the distribution of the                   matrix to this processor as well as communication parameters                   (see Aztec User's Guide).*******************************************************************************/{  /* local variables */  char *message_send_add[AZ_MAX_NEIGHBORS];  /* message_send_add[i] points to the beginning of the list of values to be     sent to the ith neighbor (i.e. data_org[AZ_neighbors+i] or sometimes     locally defined as proc_num_neighbor[i]). That is, *(message_send_add[i]+j)     is the jth value to be sent to the ith neighbor. */  unsigned int  message_send_length[AZ_MAX_NEIGHBORS];  /* message_send_length[i] is the number of bytes to be sent to the ith     neighbor (i.e. data_org[AZ_neighbors+i] or sometimes locally defined as     proc_num_neighbor[i]). */  char *message_recv_add[AZ_MAX_NEIGHBORS];  /* message_recv_add[i] points to the beginning of the list of locations which     are to receive values sent by the ith neighbor (i.e.     data_org[AZ_neighbors+i] or sometimes locally defined as     proc_num_neighbor[i]). That is, *(message_recv_add[i] + j) is the location     where the jth value sent from the ith neighbor will be stored. */  unsigned int  message_recv_length[AZ_MAX_NEIGHBORS];  /* message_recv_length[i] is the number of bytes to be sent to the ith     neighbor (i.e. data_org[AZ_neighbors+i] or sometimes locally defined as     proc_num_neighbor[i]). */  int              n;  double          *ptr_send_list, *ptr_recv_list;  register double *ptrd;  register int    *ptr_int, i;  int              size, num_send, num_recv;  int              type;  int              num_neighbors, *proc_num_neighbor, total_num_send_unknowns;  int             *num_unknowns_send_neighbor, *list_send_unknowns;  int              external_index, *num_unknowns_recv_neighbor;  /**************************** execution begins ******************************/  type            = AZ_sys_msg_type;  AZ_sys_msg_type = (AZ_sys_msg_type+1-AZ_MSG_TYPE) % AZ_NUM_MSGS + AZ_MSG_TYPE;#ifdef AZ_MPI   if ( proc_config[AZ_Comm_Set] != AZ_Done_by_User) {      printf("Error: Communicator not set. Use AZ_set_comm()\n");      printf("       (e.g. AZ_set_comm(proc_config,MPI_COMM_WORLD)).\n");      exit(1);  }#endif  num_neighbors              = data_org[AZ_N_neigh];  if (num_neighbors == 0) return;  proc_num_neighbor          = &data_org[AZ_neighbors];  total_num_send_unknowns    = data_org[AZ_total_send];  num_unknowns_send_neighbor = &data_org[AZ_send_length];  list_send_unknowns         = &data_org[AZ_send_list];  external_index             = data_org[AZ_N_internal] + data_org[AZ_N_border];  num_unknowns_recv_neighbor = &data_org[AZ_rec_length];  /* single processor case */  if (num_neighbors == 0) return;  /* Set up send messages: Gather send unknowns from "x" vector */  ptrd = (double *) AZ_manage_memory(data_org[AZ_total_send]*sizeof(double),                                     AZ_ALLOC, AZ_SYS, "comm buff", &n);  ptr_send_list = ptrd;  ptr_int = list_send_unknowns;  for (i = total_num_send_unknowns; i > 0; i--) {    *ptrd++ = x[*ptr_int++];  }  /* Define arrays for message passing */  ptr_recv_list = &x[external_index];  size = sizeof(double);  for (n = 0; n < num_neighbors; n++) {    num_send               = num_unknowns_send_neighbor[n];    num_recv               = num_unknowns_recv_neighbor[n];    message_send_add[n]    = (char *) ptr_send_list;    message_recv_add[n]    = (char *) ptr_recv_list;    message_send_length[n] = size * num_send;    message_recv_length[n] = size * num_recv;    ptr_send_list         += num_send;    ptr_recv_list         += num_recv;  }  AZ_exchange_local_info(num_neighbors, proc_num_neighbor, message_send_add,                         message_send_length, message_recv_add,                         message_recv_length, type, proc_config);} /* AZ_exchange_bdry *//******************************************************************************//******************************************************************************//******************************************************************************/void AZ_exchange_local_info(int num_neighbors, int proc_num_neighbor[],                            char *message_send_add[],                             unsigned int message_send_length[],                            char *message_recv_add[],                             unsigned int message_recv_length[],                            int type, int proc_config[])/*******************************************************************************  Routine to communicate between a small number of processors by first writing  all messages and then reading all messages. This generic routine can be called  with the standard addresses, message lengths and message types for a wide  variety of uses.  Author:          John N. Shadid, SNL, 1421  =======  Return code:     void  ============  Parameter list:  ===============  num_neighbors:             Total number of neighboring processors.  proc_num_neighbor:         Array containing the processor id for each of the                             current processor's neighbors.  message_send_add:          message_send_add[i] points to the beginning of                             the list of values to be sent to the ith neighbor                             (i.e. data_org[AZ_neighbors+i] or sometimes locally                             defined as proc_num_neighbor[i]). That is,                             *(message_send_add[i] + j) is the jth value to be                             sent to the ith neighbor.  message_send_length:       message_send_length[i] is the number of bytes to                             be sent to the ith neighbor (i.e.                             data_org[AZ_neighbors+i] or sometimes locally                             defined as proc_num_neighbor[i]).  message_recv_add:          message_recv_add[i] points to the beginning of the                             list of locations which are to receive values sent                             by the ith neighbor (i.e.  data_org[AZ_neighbors+i]                             or sometimes locally defined as                             proc_num_neighbor[i]). That is,                             *(message_recv_add[i] + j) is the location where                             the jth value sent from the ith neighbor will be                             stored.  message_recv_length:       message_recv_length[i] is the number of bytes to                             be sent to the ith neighbor (i.e.                             data_org[AZ_neighbors+i] or sometimes locally                             defined as proc_num_neighbor[i]).  type:                      message type used when exchanging information.*******************************************************************************/{  /* local declarations */  register int n;  int          rtype, st;  MPI_AZRequest request[AZ_MAX_NEIGHBORS];  /* Message handle */  /*********************** first executable statment *****************/  /* post receives for all messages */  for (n = 0; n < num_neighbors; n++) {    rtype = type;    (void) mdwrap_iread((void *) *(message_recv_add+n),                         *(message_recv_length+n), proc_num_neighbor+n, &rtype,                         request+n);  }  /* write out all messages */  for (n = 0; n < num_neighbors; n++) {    (void) mdwrap_write((void *) *(message_send_add+n),                         *(message_send_length+n), *(proc_num_neighbor+n),                         type, &st);  }  /* wait for all messages */  for (n = 0; n < num_neighbors; n++) {    rtype = type;    (void) mdwrap_wait((void *) *(message_recv_add+n),                        *(message_recv_length+n), proc_num_neighbor+n, &rtype,                        &st, request+n);  }} /* AZ_exchange_local_info *//******************************************************************************//******************************************************************************//******************************************************************************/void AZ_gather_mesg_info(double x[] ,int data_org[], char *message_recv_add[],                         char *message_send_add[], int message_recv_length[],                         int message_send_length[])/*******************************************************************************  Routine to locally exchange the components of the vector "x". This routine  gathers the necessary components of the vector and then sends the required  "num_neighbors" messages. The messages which are received are placed  contiguously in the external_nodes part of x.  Author:          John N. Shadid, SNL, 1421  =======  Return code:     void  ============  Parameter list:  ===============  x:                         Vector of unknowns defined on the current                             processor. Indirect addressing will be used to                             gather those unknowns that other processors need.  data_org:                  Array containing information on the distribution of                             the matrix to this processor as well as                             communication parameters (see Aztec User's Guide).  message_send_add:          message_send_add[i] points to the beginning of                             the list of values to be sent to the ith neighbor                             (i.e. data_org[AZ_neighbors+i] or sometimes locally                             defined as proc_num_neighbor[i]). That is,                             *(message_send_add[i] + j) is the jth value to be                             sent to the ith neighbor.  message_send_length:       message_send_length[i] is the number of bytes to                             be sent to the ith neighbor (i.e.                             data_org[AZ_neighbors+i] or sometimes locally                             defined as proc_num_neighbor[i]).  message_recv_add:          message_recv_add[i] points to the beginning of the                             list of locations which are to receive values sent                             by the ith neighbor (i.e.  data_org[AZ_neighbors+i]                             or sometimes locally defined as                             proc_num_neighbor[i]). That is,                             *(message_recv_add[i] + j) is the location where                             the jth value sent from the ith neighbor will be                             stored.  message_recv_length:       message_recv_length[i] is the number of bytes to                             be sent to the ith neighbor (i.e.                             data_org[AZ_neighbors+i] or sometimes locally                             defined as proc_num_neighbor[i]).  num_neighbors:             Total number of neighboring processors.  Important external definitions:  ===============================  Num_Neighbors:             Total number of neighboring processors.                             (type - int value)  Proc_Num_Neighbor[]:       Array containing the processor id for each of the                             current processor's neighbors.                             (type - int vector with fixed length                             AZ_MAX_NEIGHBORS)  Total_Num_Send_Unknowns:   Total number of unknowns which are sent to                             neighboring processors (size of mesg buff).                             (type - int value)  Num_Unknowns_Send_Neighbor[]:                             Vector containing the number of unknowns to be sent                             to each processor.                             (type - int vector with fixed length                             AZ_MAX_NEIGHBORS)  List_Send_Unknowns[]:      Vector of local node numbers for the unknowns to be                             sent to each neighbor.                             (type - pointer to variable length int vector)  Num_Unknowns_Recv_Neighbor[]:                             Array of number of unknowns to be received from                             each of the neighboring processors.                             (type - int vector with fixed length                             AZ_MAX_NEIGHBORS)*******************************************************************************/{  /* local variables */  double          *ptr_send_list, *ptr_recv_list;  register double *ptrd;  register int    *ptr_int, i;  int              size, num_send, num_recv;  int              n;  int              Num_Neighbors;  int             *Num_Unknowns_Recv_Neighbor, *Num_Unknowns_Send_Neighbor;  /*********************** first executable statement *****************/  Num_Neighbors              =  data_org[AZ_N_neigh];  Num_Unknowns_Recv_Neighbor = &data_org[AZ_rec_length];  Num_Unknowns_Send_Neighbor = &data_org[AZ_send_length];  /* single processor case */  if (Num_Neighbors == 0) return;  /* Set up send messages:  Gather send unknowns from "x" vector */  ptrd = (double *) AZ_manage_memory(data_org[AZ_total_send]*sizeof(double),                                     AZ_ALLOC, AZ_SYS, "ptrd", &n);  ptr_send_list = ptrd;  ptr_int = &data_org[AZ_send_list];  for (i = data_org[AZ_total_send]; i > 0; i--) {    *ptrd++ = x[*ptr_int++];  }  /* Define arrays for message passing */

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
在线播放视频一区| 欧亚洲嫩模精品一区三区| 亚洲国产精品视频| 亚洲啪啪综合av一区二区三区| 国产三级一区二区三区| 久久久久久一级片| 欧美高清在线精品一区| 中文字幕巨乱亚洲| 欧美激情一区二区三区在线| 国产欧美一区二区精品忘忧草| 精品国产一区久久| 欧美高清在线一区二区| 国产精品美女久久福利网站| 最新日韩av在线| 国产精品高潮久久久久无| 国产拍揄自揄精品视频麻豆| 中文字幕欧美激情一区| 一区二区三区国产精华| 亚洲精选视频免费看| 亚洲国产美女搞黄色| 日产欧产美韩系列久久99| 国产综合色产在线精品| 成人一区二区视频| 在线一区二区三区四区五区| 日韩欧美久久久| 国产欧美日韩另类一区| 亚洲国产精品精华液网站| 美女免费视频一区| 成人午夜私人影院| 91精品啪在线观看国产60岁| 久久久久久亚洲综合影院红桃 | 精品日韩在线一区| 欧美—级在线免费片| 亚洲精品乱码久久久久久日本蜜臀| 亚洲一区二区四区蜜桃| 精品系列免费在线观看| 99这里只有久久精品视频| 欧美人妖巨大在线| 国产三级精品视频| 日韩影院在线观看| 9久草视频在线视频精品| 日韩三级精品电影久久久| 亚洲成人免费在线| 成人免费视频一区| 91精品国产综合久久久蜜臀图片 | 国产成人自拍网| 精品视频1区2区| 国产色产综合色产在线视频| 亚洲chinese男男1069| 成人动漫精品一区二区| 欧美电影免费提供在线观看| 亚洲精选在线视频| 成人午夜在线视频| 欧美精品一区二区在线观看| 日韩精品亚洲专区| 色婷婷香蕉在线一区二区| 中文字幕一区二区日韩精品绯色| 理论电影国产精品| 欧美日韩国产综合视频在线观看 | 久久国产麻豆精品| 欧美视频一区二| 中文字幕一区二区三区蜜月| 国产一区 二区 三区一级| 91精品国产高清一区二区三区| 亚洲丝袜另类动漫二区| 豆国产96在线|亚洲| 国产精品一区在线观看乱码| 欧美老女人在线| 亚洲第一精品在线| 欧美在线免费观看亚洲| 自拍偷在线精品自拍偷无码专区| 国产一区二区导航在线播放| 日韩一区二区视频| 日韩精品乱码av一区二区| 欧美性大战久久久久久久| 亚洲视频一二区| 91一区二区三区在线播放| 国产精品蜜臀在线观看| 成人国产精品免费观看动漫| 国产人久久人人人人爽| 成人一区二区三区中文字幕| 国产日韩欧美精品一区| bt欧美亚洲午夜电影天堂| 中文字幕一区av| 色狠狠色噜噜噜综合网| 亚洲一区影音先锋| 欧美老女人第四色| 蜜桃av一区二区| 亚洲精品一区二区三区四区高清| 蜜桃精品视频在线| 国产日韩欧美精品电影三级在线| 成人av在线播放网站| 综合久久久久久| 欧美日韩精品一区二区三区四区 | 亚洲欧洲色图综合| 色婷婷国产精品| 亚洲www啪成人一区二区麻豆| 日韩一级高清毛片| jiyouzz国产精品久久| 亚洲丝袜美腿综合| 日韩免费电影一区| 波多野结衣中文字幕一区| 亚洲激情图片小说视频| 欧美一级欧美一级在线播放| 国产福利一区二区三区| 一区二区三区视频在线看| 日韩欧美自拍偷拍| 99re这里只有精品首页| 秋霞国产午夜精品免费视频| 国产午夜亚洲精品午夜鲁丝片| 色综合咪咪久久| 奇米777欧美一区二区| 欧美国产丝袜视频| 欧美精品乱人伦久久久久久| 国产又黄又大久久| 亚洲成人一区二区| 中文字幕欧美日韩一区| 91精品国产综合久久久久久久 | 久久草av在线| 中文字幕永久在线不卡| 91精品国产欧美一区二区18| 福利一区二区在线观看| 秋霞午夜av一区二区三区| 亚洲色图一区二区| 久久久综合激的五月天| 欧美亚一区二区| 91性感美女视频| 国产精一品亚洲二区在线视频| 亚洲午夜久久久久久久久电影网| 国产欧美一二三区| 91精品国产丝袜白色高跟鞋| 日本丶国产丶欧美色综合| 丰满少妇久久久久久久| 久久97超碰色| 午夜精品福利一区二区三区av| 亚洲色图制服诱惑| 欧美国产禁国产网站cc| 精品国产一区二区精华| 欧美猛男gaygay网站| 91社区在线播放| 成人高清免费观看| 韩国一区二区三区| 黄色日韩网站视频| 久久精品国产一区二区| 日韩中文字幕区一区有砖一区 | 日韩精品免费专区| 亚洲成a人片综合在线| 亚洲影视在线观看| 亚洲精品欧美二区三区中文字幕| 国产精品美女久久久久aⅴ国产馆| xf在线a精品一区二区视频网站| 日韩丝袜情趣美女图片| 欧美一二区视频| 日韩一区二区免费在线观看| 在线成人小视频| 欧美精品国产精品| 91麻豆精品国产91久久久资源速度 | 国产中文字幕精品| 久久精品国产久精国产| 看电视剧不卡顿的网站| 激情久久五月天| 成人黄色一级视频| 不卡视频一二三四| 在线免费不卡视频| 7777精品伊人久久久大香线蕉超级流畅 | 日本伊人精品一区二区三区观看方式| 亚洲最新在线观看| 亚洲.国产.中文慕字在线| 日本在线播放一区二区三区| 久久99精品国产麻豆不卡| 国产美女娇喘av呻吟久久| 粉嫩13p一区二区三区| 国产成人午夜片在线观看高清观看| 亚洲国产精品一区二区尤物区| 国内精品嫩模私拍在线| 欧美tk丨vk视频| 国产精品色婷婷| 亚洲国产一二三| 精品伦理精品一区| 久久先锋影音av鲁色资源网| 欧美国产成人精品| 亚洲午夜视频在线观看| 奇米色777欧美一区二区| 国产一区二区视频在线| 91久久精品午夜一区二区| 3d动漫精品啪啪1区2区免费| 久久久久久久久久久黄色| 伊人一区二区三区| 美女精品一区二区| caoporm超碰国产精品| 56国语精品自产拍在线观看| 国产婷婷一区二区| 亚洲一区二区三区小说| 国产suv精品一区二区883| 欧美视频第二页| 国产人妖乱国产精品人妖| 天天影视网天天综合色在线播放| 国产成人综合自拍| 欧美日韩一区久久| 日韩一区有码在线|