From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id MKMJGc4vk2DaCQAAgWs5BA (envelope-from ) for ; Thu, 06 May 2021 01:52:46 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id KButFM4vk2ASEgAAB5/wlQ (envelope-from ) for ; Wed, 05 May 2021 23:52:46 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id A494312DC1 for ; Thu, 6 May 2021 01:52:45 +0200 (CEST) Received: from localhost ([::1]:46734 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1leRJr-0002ui-Js for larch@yhetil.org; Wed, 05 May 2021 19:52:43 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:36694) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1leQxV-0001DN-5C for emacs-orgmode@gnu.org; Wed, 05 May 2021 19:29:38 -0400 Received: from mout.gmx.net ([212.227.15.18]:55379) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1leQxT-0003mo-3D for emacs-orgmode@gnu.org; Wed, 05 May 2021 19:29:36 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1620257372; bh=NpsQTgJW+eysUgFeApl1R6xV+ilrkbx18hAcNzKKqOg=; h=X-UI-Sender-Class:From:To:Cc:Subject:Date:In-Reply-To:References; b=jS0UhiQVis60HMFgGrPOvcRL9kml0lRlqzy+BP00ysnFM0UNOgLKKJi5d7/Dj2I5T CcrmLc1EXQ1CgvKRKm8nmyrCSsA3DPSkdSqPY7pb1HhAnNo1FxMJPT5l/JyVlw1aJR DVriJD+ccKAaUL78CdZ39mVemSWbkOyp1K1w77NY= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Received: from [213.165.168.94] ([213.165.168.94]) by web-mail.gmx.net (3c-app-mailcom-bs16.server.lan [172.19.170.184]) (via HTTP); Thu, 6 May 2021 01:29:31 +0200 MIME-Version: 1.0 Message-ID: From: Christopher Dimech To: Christopher Dimech Subject: Re: ob-fortran behaviour Content-Type: text/plain; charset=UTF-8 Date: Thu, 6 May 2021 01:29:31 +0200 Importance: normal Sensitivity: Normal In-Reply-To: References: <871ral7kq8.fsf@ucl.ac.uk> <87eeelrv6s.fsf@ucl.ac.uk> X-UI-Message-Type: mail X-Priority: 3 X-Provags-ID: V03:K1:Ovx3NPkaaxQlbOnc/T5hrPD9AuMcwcxY0spbU/dR8MDQ8AFJLVcqcSveB1f0+WL6LiG6u I++OloD8oNjy1yDzaZatetTiN55R+Sh95vxRTG4TOpFvKpDS6s3BZAbtMNhd+3Js5vh18BRansbu 0fg+2rcB0JqSiGFbe409/JPqYkJQfYK9Hz0dU6GxUEyjETO8f4oCKTKxknRlzp9/GaZxrQdcHhCK PaH+/ABICSg1U7nvdyd/GWbWP4MftylVkUWxQpRpvy8u7lbl63wyAZ0XHSGCPh9IAw4IPJUW1DIw Bs= X-UI-Out-Filterresults: notjunk:1;V03:K0:jtbSVULKWl0=:DgchjCKe6Gpz7r0BS+tY+d rQyXr6NgAq9LVUqzm2Ju02U6rhIMAYCBkhfM0/2MAh7xr2HWu/ScMqmP1HiAy1COFJTh5emtU SFq7PL8EG889v3GEHfmmnTifYPav5RaBmAHB1EyitCA4QI6NMrgk9s3nbgcO+gaRpv40tw6Et TrmLattRbgFj7Y89mahXu8aFBdL6McfwQrG9mGgzIVU28kqrzMAc9uSEB7nJ3fa3hjJf6fzFB kqgEKlXIfJ73AtMHkk4LrjEuML/FVuQ1ljq2R7+47h8OOrW8Fo6j2TphSzYcrcVXvu2PEI1fG 17TPw/+C1nJJHRdRVf5dSKF4XCH0IYCuo0nKdpZfW79SWRseJR6r1OLuttxemWrxbVrOcV3pW tQzG7i0mK4oVnTOeNBsxw4TjjoLjVS+DoJzBV+uCovuCuLHUC6rkCQBCAUzLJp32cFMzfT+2d DaPDzFgFn209qZJEDYWiZX5vB6TnuZkERllOxiLAiXwsDx4B38NYa5LswIkg95OHhFAY0BjHJ B0V0UUpeVxnLZYauoQG2D1gTHsWpthtaH4p15RAarQx/Hrf7+4kfDJ1+TZClUoELIGEbULAtq F/I8Xey2U/qX7mvDRo3wUowFkV5AQ8y/IFUJXPbG2BhhAipgnKtCuJiSxWKtsRk17Vie9GOq9 1fW2tpTSPSIBhvYPlOdz3CoiH8H6i7KJVx11zl53IzK+7cZn6Mj1omLSlKKAkMsu0LCOaoBUp GPKXn5iYgpbppKDrf3F7c+GZzkB+wxO+dY5GOF4XreDSlbyy3mHOedBM7WN8LfMCnsqDAVS3k WnOYUWYPlddmPO2sWXoj0gIrzyJ+NLc9XaNWHniV/zROJJ7TCFY5LUjOSnK5zYgyf8A6w0hxF uhsDiFIRhtE8YyjvrLZRQA/q5H1MFXrxTw9tGb0VpbFNFkERO0yFGDwTJOA7fC Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=212.227.15.18; envelope-from=dimech@gmx.com; helo=mout.gmx.net X-Spam_score_int: -25 X-Spam_score: -2.6 X-Spam_bar: -- X-Spam_report: (-2.6 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Org Mode List , Eric S Fraga Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1620258765; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=GXEhTme5F+tQu1BeiEkZ8ckQz7lk8gpkjQuBqEH3lUU=; b=tGUyj62Mggk3oL+TXSKfC+5oi4VxnvXzR06A+V0mkTKIpyKRuaR/v7L3uDvOI5hcUCP3ri 6FclrqiuZO4bCCGjnsOGiToyBiy395qj+m0Dd1yiz5+QsqFC0StspKsXavrr+rCqhKu6Ti SMcsROrqww1aByBYW9/5254dBqhvUgtJWNp9nT5m6euscDMJQMhRyNMSzs6qH5PYfSRyvT cUWkOeN9r7DqY+uqYsUofFnfnK9/JCkRCt461shUOOWJX1NaUhsDs9gaU2u5w6SsIzcr7x pfUwpBFTGhyoijVUJZJOts5iQO0uCYHVKYTwrZTTVhrg5uzDBqAXzpcy7nr9XA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1620258765; a=rsa-sha256; cv=none; b=pR/9FTr3HZon9aC37SDkvPJS6747UoQf84JzocjXF1XxsCfBaJTRjJEqy88FU9Hf2gLlxc 4X9vdtThOA5asksvGbmhtiLYFivxsEWaN8zjamAzSlBg09fu6RW1GLw30RHH3eOENpvF+8 +qjtH/JDho30rKuGGpVQIsz61E6MITDwbKwH0WazD4qDS5KGsK6gPlkFKLGZIsBbACCPy2 3I+bp7JJHzgyflRMRIYOQancjpH/sloxGdgBn7bQiXziDAyb5XIzG3Z2fh3j+A/OnKTIYB XHhNtUjmbHBod32sp7xEAvQxUS2hdUm7c2LwquPR6rvU7F7pQIWgP2yscb28sQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmx.net header.s=badeba3b8450 header.b=jS0UhiQV; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmx.com (policy=none); spf=pass (aspmx1.migadu.com: domain of emacs-orgmode-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=emacs-orgmode-bounces@gnu.org X-Migadu-Spam-Score: 0.63 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmx.net header.s=badeba3b8450 header.b=jS0UhiQV; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmx.com (policy=none); spf=pass (aspmx1.migadu.com: domain of emacs-orgmode-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=emacs-orgmode-bounces@gnu.org X-Migadu-Queue-Id: A494312DC1 X-Spam-Score: 0.63 X-Migadu-Scanner: scn0.migadu.com X-TUID: nlKukw39WF8B There exists no problem with fortran. My brain was not open because u(i) gets beyond its bounds. > Sent: Thursday, May 06, 2021 at 11:09 AM > From: "Christopher Dimech" > To: "Eric S Fraga" > Cc: "Org Mode List" > Subject: ob-fortran behaviour > > Fortran is behaving in a weird way > > #+BEGIN_SRC fortran > program matrx_vectr_mult > implicit none > > integer :: m, n, i, j, k > real :: a(5,3), u(3), v(5), rsum > > m =3D 5; n =3D 3 > a =3D 0.0; u =3D 0.0; v =3D 0.0 > > k =3D 0 > do j =3D 1, n > do i =3D 1, m > k =3D i + j > a(i,j) =3D real(k) > u(i) =3D real(3*i) > end do > end do > > do i =3D 1, m > rsum =3D 0.0 > do j =3D 1, n > rsum =3D (a(i,j) * u(j)) + rsum > end do > v(i) =3D rsum > end do > > write (*,*) "a * *", " * ", "u", " * ", "v" > write (*,*) a(1,:), "*", u(1), "*", v(1) > write (*,*) a(2,:), "*", u(2), "*", v(2) > write (*,*) a(3,:), "*", u(3), "*", v(3) > write (*,*) a(4,:), "* * *", v(4) > write (*,*) a(5,:), "* * *", v(5) > > print *, "---" > write (*,*) a > > end program > #+END_SRC > > #+RESULTS: > | a | * | * | * | u | * | v | | | | | = | | | | > | 12.0 | 3.0 | 4.0 | * | 3.0 | * | 90.0 | | | | | = | | | | > | 15.0 | 4.0 | 5.0 | * | 6.0 | * | 114.0 | | | | | = | | | | > | 4.0 | 5.0 | 6.0 | * | 9.0 | * | 96.0 | | | | | = | | | | > | 5.0 | 6.0 | 7.0 | * | * | * | 114.0 | | | | | = | | | | > | 6.0 | 7.0 | 8.0 | * | * | * | 132.0 | | | | | = | | | | > | --- | | | | | | | | | | | = | | | | > | 12.0 | 15.0 | 4.0 | 5.0 | 6.0 | 3.0 | 4.0 | 5.0 | 6.0 | 7.0 | 4.0 | = 5.0 | 6.0 | 7.0 | 8.0 | > > > --------------------- > Christopher Dimech > General Administrator - Naiad Informatics - GNU Project (Geocomputation) > - Geophysical Simulation > - Geological Subsurface Mapping > - Disaster Preparedness and Mitigation > - Natural Resource Exploration and Production > - Free Software Advocacy > >