亚洲欧美第一页_禁久久精品乱码_粉嫩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一区二区三区免费野_久草精品视频
欧美日本高清视频在线观看| 亚洲三级在线免费观看| 国产婷婷色一区二区三区四区| 中文字幕欧美国产| 天天色天天爱天天射综合| 国产精品一区三区| 91精品在线麻豆| 一区二区三区中文免费| 国产资源精品在线观看| 欧美日韩一卡二卡| 伊人性伊人情综合网| 懂色av一区二区三区免费观看| 91精品国产综合久久福利软件| 亚洲欧美日韩国产中文在线| 成人夜色视频网站在线观看| 精品免费国产二区三区| 日本不卡一区二区三区| 欧洲日韩一区二区三区| 日韩伦理免费电影| 成人av网站在线| 中文字幕乱码亚洲精品一区| 国产一区二区影院| 日韩欧美区一区二| 美腿丝袜在线亚洲一区| 777久久久精品| 亚洲国产毛片aaaaa无费看| 99久久99久久精品免费观看| 欧美国产激情二区三区| 国产高清亚洲一区| 久久久精品天堂| 国产精品88888| 国产午夜亚洲精品羞羞网站| 国产在线一区二区综合免费视频| 欧美一个色资源| 麻豆传媒一区二区三区| 日韩美女视频一区二区在线观看| 欧美a级一区二区| 日韩精品一区二| 玖玖九九国产精品| 久久久久久久精| 国产成人在线视频免费播放| 久久久久9999亚洲精品| 国产成人免费av在线| 国产无一区二区| 成人免费视频一区| 亚洲乱码国产乱码精品精98午夜 | 亚洲免费观看视频| 一本色道久久综合精品竹菊| 亚洲精品免费视频| 欧美日韩一区精品| 成人丝袜视频网| 亚洲色图丝袜美腿| 欧美日韩的一区二区| 久久99国内精品| 国产视频亚洲色图| 91最新地址在线播放| 亚洲影院理伦片| 日韩三级电影网址| 国产99一区视频免费| 亚洲女同一区二区| 欧美丰满少妇xxxxx高潮对白 | 欧美妇女性影城| 国产一区二区三区精品欧美日韩一区二区三区 | 国产精品拍天天在线| 91丨九色porny丨蝌蚪| 性欧美疯狂xxxxbbbb| 久久婷婷国产综合精品青草| www.成人网.com| 日本成人中文字幕| 国产精品人成在线观看免费| 欧美日韩精品高清| 国产精品一区二区在线观看不卡| 亚洲天天做日日做天天谢日日欢| 在线播放91灌醉迷j高跟美女| 国产露脸91国语对白| 一区二区在线免费| 久久久久久久免费视频了| 91黄色在线观看| 国内外成人在线| 亚洲影院在线观看| 国产精品蜜臀av| 91精品国产免费| 91在线观看污| 国产盗摄精品一区二区三区在线 | 欧洲一区二区三区在线| 国产精品一二三区在线| 亚洲成人免费电影| 国产精品高清亚洲| 精品国产1区2区3区| 91福利精品第一导航| 盗摄精品av一区二区三区| 日韩精品一区第一页| 亚洲男同性恋视频| 国产精品久久久久一区二区三区| 日韩你懂的在线播放| 欧美日韩精品一区二区在线播放| 日韩欧美一级二级三级| 日本二三区不卡| 99久久久免费精品国产一区二区 | 亚洲一区在线观看视频| 欧美激情一区二区三区不卡| 精品乱人伦小说| 欧美一区二区观看视频| 一本到三区不卡视频| 99精品在线观看视频| 成人免费视频播放| 国产精品18久久久久久久久久久久 | 日本一区二区三区视频视频| 日韩免费观看2025年上映的电影| 欧美精品国产精品| 精品视频色一区| 欧美无砖专区一中文字| 在线中文字幕一区| 欧美手机在线视频| 欧美久久婷婷综合色| 欧美精品在欧美一区二区少妇| 欧美亚一区二区| 欧美日韩高清一区| 91麻豆精品国产自产在线| 91精品麻豆日日躁夜夜躁| 538在线一区二区精品国产| 91精品国产综合久久婷婷香蕉| 欧美日本一区二区| 日韩精品在线看片z| 久久丝袜美腿综合| 久久久久久久久免费| 国产精品美女久久福利网站 | 精品成人在线观看| 国产视频一区在线播放| 国产精品网站在线播放| 中文字幕中文乱码欧美一区二区 | 久久网这里都是精品| 欧美韩日一区二区三区四区| 国产精品第一页第二页第三页| 一区二区久久久久久| 日本va欧美va欧美va精品| 国产麻豆精品视频| 91在线porny国产在线看| 91国内精品野花午夜精品| 7878成人国产在线观看| 精品剧情在线观看| 中文字幕一区二区视频| 午夜亚洲福利老司机| 国产乱码字幕精品高清av | 日韩一级视频免费观看在线| 精品精品欲导航| 亚洲欧洲无码一区二区三区| 亚洲超碰97人人做人人爱| 久久电影网站中文字幕| 成人精品gif动图一区| 欧美日韩国产精品自在自线| 久久久久久麻豆| 亚洲午夜精品一区二区三区他趣| 久久99在线观看| 99久久精品久久久久久清纯| 欧美一区欧美二区| 亚洲欧美一区二区视频| 天堂在线亚洲视频| 欧美成人艳星乳罩| 中文字幕一区av| 精品一区二区三区免费观看 | 国产欧美日韩精品一区| 亚洲一线二线三线久久久| 国产精品自产自拍| 欧美乱妇15p| 亚洲色图一区二区三区| 国产最新精品精品你懂的| 欧美视频中文字幕| 国产精品久久午夜夜伦鲁鲁| 捆绑调教美女网站视频一区| 91久久免费观看| 国产精品蜜臀av| 国产一区二区三区综合| 欧美日韩中文国产| 亚洲欧美日韩一区| 国产成人午夜精品5599 | 色综合久久综合网97色综合| 精品第一国产综合精品aⅴ| 亚洲18女电影在线观看| 色嗨嗨av一区二区三区| 欧美激情一区二区三区全黄| 黄网站免费久久| 日韩美女在线视频 | 欧美一区二区精美| 五月激情综合色| 欧美自拍丝袜亚洲| 一区二区三区在线视频播放| 不卡在线观看av| 国产亚洲欧洲997久久综合| 久久电影网站中文字幕| 日韩欧美视频在线| 青青草伊人久久| 在线不卡a资源高清| 亚洲成人第一页| 欧美日韩精品一区二区天天拍小说| 亚洲手机成人高清视频| av中文一区二区三区| 亚洲欧美另类综合偷拍| 91高清视频在线| 亚洲线精品一区二区三区八戒|