| 6 | 1/1 | 返回列表 |
| 查看: 2298 | 回復(fù): 5 | ||
exabyss916新蟲 (小有名氣)
|
[求助]
ifort和gfortran無(wú)格式輸出的區(qū)別
|
|
比如有一個(gè)長(zhǎng)度為20的數(shù)組A(20),用無(wú)格式輸出: write(10,*)A gfortran編譯的結(jié)果正確顯示,A(1),A(2),...,A(20)都輸出到一行。 ifort編譯的結(jié)果卻分行顯示了,每行只有3個(gè)數(shù),如何讓輸出結(jié)果只有一行? |
至尊木蟲 (職業(yè)作家)
木蟲 (正式寫手)
star watcher
金蟲 (小有名氣)

金蟲 (小有名氣)

至尊木蟲 (職業(yè)作家)
|
Fortran 77 標(biāo)準(zhǔn)中有這個(gè)類型,不過(guò)不常用,呵呵…… [qutoe] 13.5.9.2.3 G Editing. The Gw.d and Gw.dEe edit descriptors indicate that the external field occupies w positions, the fractional part of which consists of d digits, unless a scale factor greater than one is in effect, and the exponent part consists of e digits. G input editing is the same as for F editing ( 13.5.9.2.1). The method of representation in the output field depends on the magnitude of the datum being edited. Let N be the magnitude of the internal datum. If N < 0.1 or N >= 10**d,Gw.d output editing is the same as kPEw.d output editing and Gw.dEe output editing is the same as kPEw.dEe output editing, where k is the scale factor currently in effect. If N is greater than or equal to 0.1 and is less than 10**d , the scale factor has no effect, and the value of N determines the editing as follows: ________________________________________________ | | | |_Magnitude_of_Datum____|__Equivalent_Conversion| | | | | 0.1=N<=1 | F(w-n).d, n('b') | | | | | 1<=N<10 | F(w-n).(d-1), n('b') | | | | | . | . | | . | . | | . | . | | 10**(d-2)<=N<10**(d-1)| F(w-n).1, n('b') | | | | | 10**(d-1)<=N<10**d | F(w-n).0, n('b') | | | | |_______________________|_______________________| where: b is a blank n is 4 for Gw.d and e+2 for Gw.dEe Note that the scale factor has no effect unless the magnitude of the datum to be edited is outside of the range that permits effective use of F editing. [/quote] |
| 6 | 1/1 | 返回列表 |
| 最具人氣熱帖推薦 [查看全部] | 作者 | 回/看 | 最后發(fā)表 | |
|---|---|---|---|---|
|
[考研]
材料學(xué)碩,求調(diào)劑
6+4
|
糖葫蘆888ll 2026-03-22 | 9/450 |
|
|---|---|---|---|---|
|
[考研] 086003食品工程求調(diào)劑 +6 | 淼淼111 2026-03-24 | 6/300 |
|
|
[考研] 化學(xué)調(diào)劑 +6 | yzysaa 2026-03-21 | 6/300 |
|
|
[考研] 085601求調(diào)劑總分293英一數(shù)二 +3 | 鋼鐵大炮 2026-03-24 | 3/150 |
|
|
[考研] 化工專碩求調(diào)劑 +3 | question挽風(fēng) 2026-03-24 | 3/150 |
|
|
[考研] 招08考數(shù)學(xué) +7 | laoshidan 2026-03-20 | 16/800 |
|
|
[考研] 307求調(diào)劑 +5 | 超級(jí)伊昂大王 2026-03-24 | 5/250 |
|
|
[考研] 一志愿哈工大,085400,320,求調(diào)劑 +3 | gdlf9999 2026-03-24 | 3/150 |
|
|
[考研] 環(huán)境學(xué)碩288求調(diào)劑 +8 | 皮皮皮123456 2026-03-22 | 8/400 |
|
|
[考研] 生物學(xué)一志愿985,分?jǐn)?shù)349求調(diào)劑 +6 | zxts12 2026-03-21 | 9/450 |
|
|
[考研] 319求調(diào)劑 +4 | 小力氣珂珂 2026-03-20 | 4/200 |
|
|
[基金申請(qǐng)] 山東省面上項(xiàng)目限額評(píng)審 +4 | 石瑞0426 2026-03-19 | 4/200 |
|
|
[考研] 0703化學(xué)調(diào)劑 +4 | 妮妮ninicgb 2026-03-21 | 4/200 |
|
|
[考研] 0805材料320求調(diào)劑 +3 | 深海物語(yǔ) 2026-03-20 | 3/150 |
|
|
[考研] 321求調(diào)劑 +9 | 何潤(rùn)采123 2026-03-18 | 11/550 |
|
|
[考研] 一志愿武漢理工材料工程專碩調(diào)劑 +9 | Doleres 2026-03-19 | 9/450 |
|
|
[考研] 一志愿西安交通大學(xué) 學(xué)碩 354求調(diào)劑211或者雙一流 +3 | 我想要讀研究生 2026-03-20 | 3/150 |
|
|
[考研] 求調(diào)劑 +3 | @taotao 2026-03-20 | 3/150 |
|
|
[考研] 一志愿福大288有機(jī)化學(xué),求調(diào)劑 +3 | 小木蟲200408204 2026-03-18 | 3/150 |
|
|
[考研] 本科鄭州大學(xué)物理學(xué)院,一志愿華科070200學(xué)碩,346求調(diào)劑 +4 | 我不是一根蔥 2026-03-18 | 4/200 |
|