由买买提看人间百态

topics

全部话题 - 话题: sout
1 (共1页)
l********a
发帖数: 1154
1
直接上次的当函数就行了,
#! /usr/bin/env python
def getAcronym(s):
return ''.join([x for x in s.title() if x.isupper()])
# main entry
fnin = raw_input('Please specify the input filename:\n')
fnout = raw_input('Please specify the output filename:\n')
sout = ''
if len(fnin.strip())>0 and len(fnout.strip())>0:
fin = open(fnin,'r')
for sline in fin.readlines():
sout += getAcronym(sline)+'\n'
fin.close()
fout = open(fnout,'w')
fout.write(sout)
fout.close()
print 'Done'
els... 阅读全帖
a******s
发帖数: 232
2
http://www.devdaily.com/blog/Content/2/18/316/
How to use a strikeout/strikethrough font with LaTeX
It was hard to find out how to use a strikethrough font using LaTeX, and I don
't want to lose it, so here's a simple example.
%
% include the "ulem" package in the header
%
\usepackage{ulem}
%
% use the "sout" tag to "strike through" text
%
\sout{Bill Clinton} G.W. Bush is the pres.
This produces text like this:
Bill Clinton G.W. Bush is the pres.
As you can see, step one is to include the ul
u****n
发帖数: 7521
3
来自主题: Military版 - 美国能从阿富汗脱身吗?

So, what was so profound about saying, "I can't win, and I can't get out"?
Well, it summed up the trap President Johnson was caught in then—and pretty
much captures President Obama's dilemma today. The truth of the matter was
that neither LBJ nor his predecessors, nor his successor President Nixon,
were actually trying to win. They all understood pretty well that the force
they were applying would not be sufficient to overcome a highly motivated
North Vietnam and their Viet Minh allies in Sout
p*****c
发帖数: 2858
4
Update: Monday, 3:20 p.m.: Yongfei Ci was charged with one count of first de
gree murder, one count of home invasion and one count of aggravated kidnappi
ng in court Monday, according to the Office of the State’s Attorney.
A preliminary hearing will be held on Oct. 22 at 1:30 p.m. to see if there i
s enough probable cause for the case to continue.
***
University student Mengchen Huang, 25, has been identified as the victim in
the Urbana Police Department’s ongoing homicide investigation, accordi... 阅读全帖
M*******n
发帖数: 10087
5
谁给说说背景?印度为啥中枪了?
三哥们很怒,也开始请愿了
https://www.change.org/p/academia-don-t-replace-india-with-sout
california-history-textbooks
h*******i
发帖数: 4386
6
米国第二次内战,就在芝加哥开打。 2020年国会SOUT演讲,有人向床总打黑枪,米国
全国骚乱,内战在种族矛盾最尖锐的芝加哥爆发,北面的蜜柚和南面的泥格,夹攻中间
的红脖子。
哪知道在空军叛乱集团的配合下,从西面突然空降来一个德州茶党骑兵-机械化集群,
3000多人开着皮卡和悍马,架起40毫米榴弹机枪,82毫米迫击榴弹炮,12.7毫米重机枪
,势不可挡的沿着90/94杀入城来,南面泥格溃不成军败一哄而散,北面的蜜柚主力KK
Freiwilligen Standarten "Skokie"被包围在navy pier一带缴械,统统捆起来扔进冰
冻的河里面。惨叫声持续到晚上。
米华哆哆嗦嗦的全家龟缩在已经停电停气一个月的家里,天天盼望朝廷派飞机来接侨民
。53岁的芝大物理博士dsb,脸色青黑,手里攥着把CZ P10,恐惧不安的听着窗外的枪
声和惨叫声。
P****i
发帖数: 12972
7
http://www.forbes.com/sites/kenrapoza/2020/03/12/china-and-south-korea-model
s-seem-like-only-way-to-contain-covid-19/
China And South Korea Models Seem Like Only Way To Contain COVID-19
Kenneth Rapoza
Kenneth RapozaSenior Contributor
Markets
I write about business and investing in emerging markets.
Wuhan Works To Contain Spread Of Coronavirus
A cleaner wears a mask as she works at a hospital on March 12, 2020 in Wuhan
. Flights, trains and ... [+] Getty Images
On Wednesday night, President Trum... 阅读全帖
g********d
发帖数: 4174
8
来自主题: QueerNews版 - newt is projected to win in SC!
http://www.huffingtonpost.com/2012/01/21/newt-gingrich-win-sout
Last-Minute Decisions
Exits polls from South Carolina suggest we are heading to a victory for Newt
Gingrich fueled largely by voters who made their minds up in the last few
days.
According to CNN, Gingrich is projected to get 38 percent of the votes, Mitt
Romney will get 29 percent, Rick Santorum will get 17 percent and Ron Paul
will get 15 percent. The network is not yet projecting a winner, in large
part because the number in the ... 阅读全帖
D*V
发帖数: 3096
9
Update: Monday, 3:20 p.m.: Yongfei Ci was charged with one count of first de
gree murder, one count of home invasion and one count of aggravated kidnappi
ng in court Monday, according to the Office of the State’s Attorney.
A preliminary hearing will be held on Oct. 22 at 1:30 p.m. to see if there i
s enough probable cause for the case to continue.
***
University student Mengchen Huang, 25, has been identified as the victim in
the Urbana Police Department’s ongoing homicide investigation, accordi... 阅读全帖
s**********e
发帖数: 110
10
(CNN) -- Former President Clinton said that Democrats were more likely to
lose in November if Sen. Hillary Clinton is not the nominee and suggested
that some were trying to "push and pressure and bully" superdelegates to
make up their minds prematurely.
Bill Clinton did not explain who he was accusing of "covering up" Sen.
Clinton's chances.
"I can't believe it. It is just frantic the way they are trying to push and
pressure and bully all these superdelegates to come out," Clinton said at a
Sout
b******i
发帖数: 1183
b******i
发帖数: 1183
h******h
发帖数: 1257
13
来自主题: USANews版 - Sotomayor是大法官里最烂的
根子还在David Soute这个内鬼,老布什任命的,没过几年原形毕露左转,bush vs
gore 中还投了反对小布什。最后死撑到o8上任才退休让位给sotomayor
b*****d
发帖数: 61690
14
来自主题: USANews版 - 司法部上诉到第九巡回法庭了
肯尼迪是里根提名的.小布什提名的两个都是保守派.老布什当年提名的soute是个自由
派.老布什被自己的chief of staff给忽悠了.
T******9
发帖数: 2222
15
二手交易风险自负!请自行验证是否合法和一手卡!:
我想卖的物品:
1 HP P2035N
5 HP Mobile 100
单张面值:
可接受价格(必须明码标价!):
$260
$220
物品新旧要求:
Brand new sealed. UPC intact.
邮寄方式要求:
YL
买卖双方谁承担邮寄损失(Required if not code only):
付款方式说明:
Billpay/BOA/Chase
其他补充说明:
广告的有效期:
Till gone
物品来源(Required for All Cards!):
我的联系方式:
PM
Warranty期限:
能否证明是合法的一手卡?(Required for All Cards!):
state and zip:
TN
T******9
发帖数: 2222
16
二手交易风险自负!请自行验证是否合法和一手卡!:
我想卖的物品:
1 HP P2035N
5 HP Mobile 100
单张面值:
可接受价格(必须明码标价!):
$260
$220
物品新旧要求:
Brand new sealed. UPC intact.
邮寄方式要求:
YL
买卖双方谁承担邮寄损失(Required if not code only):
付款方式说明:
Billpay/BOA/Chase
其他补充说明:
广告的有效期:
Till gone
物品来源(Required for All Cards!):
我的联系方式:
PM
Warranty期限:
能否证明是合法的一手卡?(Required for All Cards!):
state and zip:
TN
M****u
发帖数: 17708
s******u
发帖数: 676
18
二宝三月初due,大宝刚过三岁,大宝的时候穷学生,没有买stroller,买了个chicco
的伞车,结果去年夏天放在楼下被偷了。
最近一直在研究stroller,甚至犹豫到底要不要买。在Albee Baby看到这两个,觉得价
格都ok,更喜欢P4的颜色,但是又觉得P Switch能够双向。还有就是家里的infant car
seat是Graco,不知道是不是两个都放得上去。还有一个疑问,夏天的时候Stroller会
不会很热,尤其是P4黑白色的。
Peg Perego Pliko Four
http://www.albeebaby.com/peg-perego-pliko-four-stroller-in-sout
Peg Perego Pliko Switch Compact
http://www.albeebaby.com/peg-perego-pliko-switch-compact-myrto.
请有经验的宝妈们给点建议吧,谢谢!
对了,这两款大宝都可以站在后面。
c*******n
发帖数: 1214
19
来自主题: Connecticut版 - Crabbing in Galilee, RI, on Sunday, 9/13.
Dear all,
It is the best time of the year for eating crabs. They are fat and tasty now
more than ever! Since so many people want to go crabbbing recently, we plan
to go crabbing in Galilee, RI on Sunday, Sep.13th. We will meet in New
Haven and car pool to RI, (suggested car pool fee will be $10 per person to
the driver). The meet place will be WalMart parking lot in New Haven, (I-91
exit 8). Time will be 9 AM. We can provide ride from New Haven and Hartford
. If we get more people in from sout
q***i
发帖数: 1856
20
来自主题: Georgia版 - 8月开车注意车速~
刚刚一个朋友转发给我的,不知道消息真假,不过还是提醒下大家谨慎,安全驾驶!!
WATCH YOUR SPEED!
AJC 07/19/2010
> Starting Aug 1, Georgia will launch a 30 day speeding ticket frenzy.
> The state estimates that 9 million dollars will be generated in
> speeding tickets. 1 million will go to pay state troopers' overtime.
> The rest to help with dwindling budgets. There will be 50 state
> troopers on duty at all times patrolling the 7 main intersections
> and highways.
>
> They are the following:
> I-20 east and west
> I-75 north and sout
G****a
发帖数: 10208
21
早茶, 去京园吧, 御园老板的小老婆被大老婆扫地出门后, 现在在京园做经理
其实OLIVE上其他几家广东店吃早茶也都还可以
现在ST LOUIS的BUFFET重新洗牌了, WATSON上有两家, 那个SEAFOOD CITY那里也有
TOKYO, 其实也还好啦
Hibachi Grill and Buffet,
http://www.urbanspoon.com/r/28/1660138/restaurant/St-Louis/Sout
Teppanyaki Grill & Buffet
http://www.yelp.com/biz/teppanyaki-grill-and-buffet-saint-louis
s********g
发帖数: 695
22
来自主题: SanDiego版 - ci 鱼ci到肚圆, 拍片拍到卡满
benchmark: Canon 70-200f4L, 25 cm, 1042 g
09 金秋Eastern Sierra 食色双修游
既得黄咪的老爹的真传,与其临网羡鱼,不如关机上车。俺天天有空,却要拖到周五L.A.有了traffic。
一路上听着老墨的歌,载欣载奔。到了Lone Pine, 已黄昏。正好西部片节,这个只有一个红绿灯的小镇闹得,俺决定在此扎营,逗那些假牛仔们玩。以前总是避开这个周末,有过找旅馆一路找到Mammoth的惨痛经历。要等到一张桌子吃到一个burger, 都不容易。吃完了,听牛仔们唱歌。这里也许是last frontier。
在俺的iPod中居然找到一张Dixie Chicks的老专辑,《Wide Open Spaces》。当开着小破车穿过湖边金色的白桦林,或是半夜酒醒于万籁俱寂的营地,Natalie 嗓音总是那么的凄美。(猜猜俺的最爱是哪首?猜对的得包子一个。)
周六一早把帐篷草草收收往车里一丢,就朝Bishop奔去,看左边红红的Sierra向身后退去,美呀美。ci了早饭,喝了咖啡, 买了午饭,把North Lake, Sabrina Lake, 和Sout
s******0
发帖数: 78
23
来自主题: SanFrancisco版 - 求圣诞弯区附近驾车游建议~~

发信人: berg2007 (berg), 信区: SanFrancisco
标 题: 台胞着的,写的不错,谁有兴趣组织一一遍历? (转载)
发信站: BBS 未名空间站 (Sun Oct 31 14:19:31 2010, 美东)
11. San Francisco
San Francisco旧金山最早由西班牙人建立,快速成长于十九世纪中的淘金热中,二十
世纪初的大地震曾经对这个城市造成毁灭性的打击,后来又迅速复甦,是美国西岸最有
文化历史,被誉为世界最美丽城市之一。Skyline城市地平线是举世闻名景色。旧金山
也是被认为是最有欧洲风味的美国城市,彷彿与外界隔绝般,在山与海的环抱下,金门
大桥与环美金字塔耸立着,叮当车行驶在丘陵起伏的地面,维多利亚式房屋和中国城形
成最主要特征。
矗立在海湾的橘色Golden Gate Bridge金门大桥,背景一面是完全的山,而另一面是高
耸的城市,那样完美镶合一起,当从城市内丘陵起伏的地形,往海边俯冲而下时,忍不
住让人赞叹不已。这样一个美丽的城市,拥有独特地标建筑,半岛地形三面环海,海外
又有山,是美国最适合无车自助旅行的几个城市之一。不... 阅读全帖
h*****s
发帖数: 821
24
来自主题: SanFrancisco版 - Sunnyvale这边比South San Jose冷太多了
刚搬到Sunnyvale没多久,天天晚上盖大棉被,mid-night室温大概是68F, 清晨就变成64F
了. 这可是7月大夏天啊.
本来还以为今年夏天比较冷.可是这个周末两天开车去Sout San Jose.沿着85开过去开
回来,每次车里的温度显示都测量出South San Jose比Sunnyvale高 7-9F. 还是暖点的
比较舒服.Sunnyvale这边冷得太难受了.根本没有夏天.
u***e
发帖数: 611
25
2009 is the turning point of Houston. With the drop of oil price, worsening
of the economy, rising of the crime, Houston is becoming Detroit of the sout
h.
a******e
发帖数: 36306
26
主要是靠着新奥尔良,人渣都被katrina运过来了

worsening
sout
c****u
发帖数: 3277
27
来自主题: Bridge版 - 1. Tricky Squeeze
Dummy
S 10 3 2
H A 4 2
D Q 4 3 2
C 10 3 2
You
S A Q J
H K Q 3
D A K
C A Q J 5 4
west north east sout
2c
3s pass(1) pass 6NT
all pass
1. Shows values
West leads the HJ, Plan the play
B*****1
发帖数: 9127
28
来自主题: NBA版 - Nash要去南非报道世界杯了
FORT LAUDERDALE, Fla. (AP)—Phoenix Suns star Steve Nash will travel to Sout
h Africa to report on the World Cup for CBSSports.com.
Nash’s team was eliminated by the Los Angeles Lakers on Saturday in the Wes
tern Conference finals. He’ll file eight videos and have additional reports
and photos posted to CBSSports.com’s social media platforms under a deal w
ith Meathawk, his production company.
A Canadian citizen who was born in Johannesburg, the two-time NBA MVP is a T
ottenham fan and is involve
b**j
发帖数: 20742
29
来自主题: NCAA版 - big10 expansion的rumor又来了
google了一下这个,原来大东是想通过割让ND给大十,换取大十不来拉拢其他大东成员
。哈哈哈哈
They want the Commissioner to tell Notre Dame to get in for football or get
out for the rest of its sports. Notre Dame is a Big East member for all its
sports with the exception of football.
If you ask virtually anyone with any insight on the subject, they'll tell yo
u that the chances of Notre Dame joining the Big East for football are slim
and none, and slim left town a long time ago.
So why issue an ultimatum to the Giant Green Elephant in Sout
M*F
发帖数: 1365
30
来自主题: Outdoors版 - 一个人hiking 国家公园big bend
en,我不会选择太多的,直走一个好了。
今天看一辆车上贴个条,说独自登山。sout rim, 然后possible emory.早晨9点半的条
。晚上我看7点了,条子还在。
M*F
发帖数: 1365
31
来自主题: Outdoors版 - 一个人hiking 国家公园big bend
en,我不会选择太多的,直走一个好了。
今天看一辆车上贴个条,说独自登山。sout rim, 然后possible emory.早晨9点半的条
。晚上我看7点了,条子还在。
e********3
发帖数: 18578
32
来自主题: Soccer版 - 国安赛后砸烂更衣室
大哥你是不知道帝都现在排骨西瓜的价格吧?我周六才从帝都回来,呆了12天,网上中
国留学生写的韩国西瓜200人民币一个,但是我看这个美国人的连接,一个西瓜10美元
左右,帝都的西瓜20斤左右的也10美元了呀。
http://www.expatarrivals.com/south-korea/cost-of-living-in-sout
In the fruit and vegetables department a watermelon will cost about USD 10
and a head of broccoli is around USD 1.50.
Dining out is inexpensive if you stick to Korean food. A huge meal for two
with a range of side dishes usually costs USD 25 or less, but if you decide
to eat at a Western restaurant each dish will cost between USD ... 阅读全帖
a**s
发帖数: 9606
33
来自主题: Tennis版 - USTA 2012年各级人数统计
RatingDate是 2011/12/31 -> 2012/12/31 升级人数:
2.5->3.0 1604 22.3%
3.0->3.5 5512 10.6%
3.5->4.0 6167 5.9%
4.0->4.5 3025 3.6%
4.5->5.0 454 1.9%
2.5->3.5 29
3.0->4.0 46
3.5->4.5 17
4.0->5.0 6

2.5->4.0 1
其中4.0升到4.5按Section分:
CARI 58 443 13.1%
EAST 91 2638 3.4%
FLOR 173 4437 3.9%
HAWA 44 1127 3.9%
INTE 190 4827 3.9%
MIDA 224 4062 5.5%
MIDD 127 ... 阅读全帖
l****o
发帖数: 2
34
计划是在7月11日~7月18日报个团游览美西(主要是想去黄石),就是类似:
http://cn.toursforfun.com/7-days-yellowstone-san-francisco-arch
http://cn.toursforfun.com/7-days-yellowstone-national-park-sout
本人女生,希望能找到小伙伴女生share房费,有意请站内交换联系方式商量。
如果能够策划成自驾游,更欢迎哈。
t******g
发帖数: 17520
35
来自主题: CouchPotato版 - 为什么Ygritte这么讨人喜欢?
America english Piss Cutter
American Wound Socket
American (louisiana creole) whispering eye
American english Pussy
American english Meat Curtain
American english Vajayjay
American english HAM WALLET
American english Cunt
American english Piss fenders
British clunge
British twat
British Clunge
Burmese Nea hmea sout put
Canadian beaver
Canadian snatch
Canadian Snatch
Chinese ji bai
English muff
English Creampie
English tarey ami ney pudd... 阅读全帖
S*******n
发帖数: 10009
R*o
发帖数: 3781
37
Study By: Greg Herrick
http://bible.org/seriespage/study-and-exposition-romans-615-23
A. Introduction
Mahatma Gandhi (1869-1948) “fought” for the freedom of enslaved and oppres
sed peoples for over thirty years and is rightly recognized as one of the wo
rld’s great leaders in this regard. He protested racial legislation in Sout
h Africa and led civil disobedience campaigns in his native India in order t
o secure home rule. He was especially noted for his commitment to non-violen
t ways, his self... 阅读全帖
c********g
发帖数: 1173
38
来自主题: Apple版 - 正式加入Apple 阵营

如果你不喜欢自动提示之类的,可以关掉啊。而且有些ide支持shortcode,比如在
intelliJ上,敲sout然后tab就可以出来
System.out.println
这肯定比自己全敲出来快吧。
c**********w
发帖数: 1746
39
这个程序就是想测试一下ISEND和IRECV。启动四个线程,每个把一个数字发到rank+1的
下一个thread上,最后一个rank为3的发回到rank=0的线程,用WAIT_ALL等待,然后把
结果打印出来,已经编译成功,发现四个线程也都启动,但却不能通讯。测试条件为
quad-core, linux, openMP
程序:
program hello
USE mpi
integer rank, size, ierror, status(MPI_STATUS_SIZE)
integer dest,tag, ierr,tag2, req(2), src
REAL*8 res, msg, ans,sout
integer status_array(MPI_STATUS_SIZE,2)

call MPI_INIT(ierror)
call MPI_COMM_SIZE(MPI_COMM_WORLD, size, ierror)
call MPI_COMM_RANK(MPI_CO
m*****7
发帖数: 67
40
tag必须一样才能收到
现在只有rank1能收到是因为:tag2初始值是0,
rank0发给rank1的msg tag也是0,
所以碰巧match上了

这个程序就是想测试一下ISEND和IRECV。启动四个线程,每个把一个数字发到rank+1的
下一个thread上,最后一个rank为3的发回到rank=0的线程,用WAIT_ALL等待,然后把
结果打印出来,已经编译成功,发现四个线程也都启动,但却不能通讯。测试条件为
quad-core, linux, openMP
程序:
program hello
USE mpi
integer rank, size, ierror, status(MPI_STATUS_SIZE)
integer dest,tag, ierr,tag2, req(2), src
REAL*8 res, msg, ans,sout
integer status_array(MPI_STATUS_SIZE,2)

call MPI_INIT(ierror)
cal
c**********w
发帖数: 1746
41
这个程序就是想测试一下ISEND和IRECV。启动四个线程,每个把一个数字发到rank+1的
下一个thread上,最后一个rank为3的发回到rank=0的线程,用WAIT_ALL等待,然后把
结果打印出来,已经编译成功,发现四个线程也都启动,但却不能通讯。测试条件为
quad-core, linux, openMP
程序:
program hello
USE mpi
integer rank, size, ierror, status(MPI_STATUS_SIZE)
integer dest,tag, ierr,tag2, req(2), src
REAL*8 res, msg, ans,sout
integer status_array(MPI_STATUS_SIZE,2)


call MPI_INIT(ierror)
call MPI_COMM_SIZE(MPI_COMM_WORLD, size, ierror)
call MPI_COMM_RANK(M
h********y
发帖数: 1
42
来自主题: TeX版 - help on \hl{ \cite{ } }
In latex, I am trying to cross out some lines and highlight some other lines
wiht the userpackage{soul} and commands \sout{} and \hl{}. But, when I have
a structure with imbedded brackets like this "\hl{ \cite{} }", it always give
me a wrong information "Argument has an extra }". So I am writing to see if
somebody can help me out.
d****e
发帖数: 251
43
来自主题: TeX版 - how to draw a midline across text?
\usepackage{ulem}, which by default changes the behavior of \emph
\sout{strike out}
i********w
发帖数: 2223
44
来自主题: TeX版 - 如何钩掉一个字
我想实现用红线strikethrough一个黑字
我现在sout,划线和字颜色是一样。有没有办法设置颜色?
谢谢
s*k
发帖数: 144
45
【 以下文字转载自 ChinaNews 讨论区 】
【 原文由 greenwood 所发表 】
1.细菌人工染色体(BAC)是DNA插入片段可达200到300千碱基对(kb)
的人工克隆。
BAC系统比酵母菌人工染色体(YAC)开发得晚,后者有两个严重的缺
点,即容易
嵌合(chimeric)和不稳定(内源缺失)。这些文库用于物理作图(
physical mapping)。
大约在几年前,建造包含染色体或某段染色体区域的YAC,BAC和噬菌
体人工染色
体(PAC)的叠连群(contif)是一个热点。自几年前以来,BAC和PA
C叠连群被
用于基因组测序(即所谓预备测序叠连群)。现在人类基因组计划已
经完成了整
个基因组的测序,这些叠连群就变得不那么重要。
2.但是BAC文库用于荧光素原位杂交(FISH)工作还是有用的,也就
是说,如果
一个BAC克隆含有已知基因,就能用于FISH实验检测是否有该基因参
与其中。然
而,由于BAC很大而且可能含有其他未知DNA片段,即使用FISH检测到
了断裂信号,
也并不意味着该基因发生了变化。最后的结果还必须用分子遗传学的
办法确定,
即用Sout
b*****e
发帖数: 1193
46
给我发个大包子
买个这个
http://www.digikey.com/product-search/en/cable-assemblies/d-sub
剪下female,拆开线,照这个图
https://www.google.com/search?q=rs232+pinout&hl=en&client=firefox-a&hs=viK&
rls=org.mozilla:en-US:official&prmd=imvns&tbm=isch&tbo=u&source=univ&sa=X&ei
=Qj7ZT_ylKcTo2AXc_M2ODw&ved=0CGcQsAQ&biw=1262&bih=579
把RX,TX,GND分出来,
再买个molex mating terminal
http://www.digikey.com/product-detail/en/0436450400/WM1847-ND/2
焊接上,
RX-Sout
TX-Sin
GND-GND
查下atn具体是什么信号,看是否要FC,个人感觉不需要,
c**********w
发帖数: 1746
47
发信人: chairmanmeow (chairmanmeow), 信区: Programming
标 题: 哪位帮忙看一个极为简单的 MPI 程序,感谢拉!
发信站: BBS 未名空间站 (Sat Jul 17 13:59:56 2010, 美东)
这个程序就是想测试一下ISEND和IRECV。启动四个线程,每个把一个数字发到rank+1的
下一个thread上,最后一个rank为3的发回到rank=0的线程,用WAIT_ALL等待,然后把
结果打印出来,已经编译成功,发现四个线程也都启动,但却不能通讯。测试条件为
quad-core, linux, openMP
程序:
program hello
USE mpi
integer rank, size, ierror, status(MPI_STATUS_SIZE)
integer dest,tag, ierr,tag2, req(2), src
REAL*8 res, msg, ans,sout
integer status_array(MPI_STATUS
c**********w
发帖数: 1746
48
这个程序就是想测试一下ISEND和IRECV。启动四个线程,每个把一个数字发到rank+1的
下一个thread上,最后一个rank为3的发回到rank=0的线程,用WAIT_ALL等待,然后把
结果打印出来,已经编译成功,发现四个线程也都启动,但却不能通讯。测试条件为
quad-core, linux, openMP
程序:
program hello
USE mpi
integer rank, size, ierror, status(MPI_STATUS_SIZE)
integer dest,tag, ierr,tag2, req(2), src
REAL*8 res, msg, ans,sout
integer status_array(MPI_STATUS_SIZE,2)

call MPI_INIT(ierror)
call MPI_COMM_SIZE(MPI_COMM_WORLD, size, ierror)
call MPI_COMM_RANK(MPI_CO
1 (共1页)