| 6 | 1/1 | 返回列表 |
| 查看: 2299 | 回復(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ā)表 | |
|---|---|---|---|---|
|
[考研] 334分 一志愿武理-080500 材料求調(diào)劑 +3 | 李李不服輸 2026-03-25 | 3/150 |
|
|---|---|---|---|---|
|
[考研] 0854人工智能方向招收調(diào)劑 +4 | 章小魚567 2026-03-24 | 4/200 |
|
|
[考研] 285求調(diào)劑 +3 | AZMK 2026-03-24 | 3/150 |
|
|
[考研] 282求調(diào)劑 +3 | wcq131415 2026-03-24 | 3/150 |
|
|
[考研] 0854AI CV方向招收調(diào)劑 +3 | 章小魚567 2026-03-23 | 3/150 |
|
|
[有機(jī)交流]
20+3
|
FENGSHUJEI 2026-03-23 | 5/250 |
|
|
[考研] 化工專碩求調(diào)劑 +3 | question挽風(fēng) 2026-03-24 | 3/150 |
|
|
[考研] 321求調(diào)劑 +4 | Ymlll 2026-03-24 | 4/200 |
|
|
[考研] 316求調(diào)劑 +7 | 梁茜雯 2026-03-19 | 7/350 |
|
|
[考研] 298求調(diào)劑 +8 | 上岸6666@ 2026-03-20 | 8/400 |
|
|
[考研] 306求調(diào)劑 +5 | 來(lái)好運(yùn)來(lái)來(lái)來(lái) 2026-03-22 | 5/250 |
|
|
[考研] 303求調(diào)劑 +5 | 安憶靈 2026-03-22 | 6/300 |
|
|
[考研] 085600材料與化工306 +4 | z1z2z3879 2026-03-21 | 4/200 |
|
|
[考研] 297求調(diào)劑 +3 | 喜歡還是不甘心 2026-03-20 | 3/150 |
|
|
[考研] 0703化學(xué)297求調(diào)劑 +3 | Daisy☆ 2026-03-20 | 3/150 |
|
|
[考研] 南昌大學(xué)材料專碩311分求調(diào)劑 +6 | 77chaselx 2026-03-20 | 6/300 |
|
|
[考研] 308求調(diào)劑 +3 | 阿姐阿姐家啊 2026-03-18 | 3/150 |
|
|
[考研] 290求調(diào)劑 +7 | ^O^乜 2026-03-19 | 7/350 |
|
|
[考研] 295材料求調(diào)劑,一志愿武漢理工085601專碩 +5 | Charlieyq 2026-03-19 | 5/250 |
|
|
[考研]
|
不想起名字112 2026-03-19 | 3/150 |
|