Quantcast
Channel: Fortran
Browsing all 3108 articles
Browse latest View live

Difficulties building/linking with ISO C binding with ifort on Windows

Big picture: I am trying to embed a Lua interpreter in Fortran code via the F2003 ISO C bindings (see https://bitbucket.org/haraldkl/aotus ).I can get it to work with ifort and Windows, just not both...

View Article


Memory Growth- Memory consumption of individual modules

Hi,I am using the Intel Inspector XE 2016 for memory profiling of my exe. My application is using some of DLLs ( loading and using them). I am not able to find out which module is taking how much of...

View Article


character initialization using hexadecimal

The following specification is accepted by the compiler:      CHARACTER*1 FALSE/Z'00'/, TRUE/Z'01'/but is not accepted in the next case:CHARACTER(LEN=1), PARAMETER :: FALSE=Z'00', TRUE=Z'01'...

View Article

Assign allocated array to other allocatable array

Hi,I've got two codes, which I want to combine. In one code I've got type: TYPE, PUBLIC ::m_type INTEGER :: m, REAL ( KIND( 1.0D+0 ) ), ALLOCATABLE, DIMENSION(:) :: val END TYPEand subroutine which...

View Article

Older Version of Compiler Not Recognizing My Manually Generated License File...

Hello.  I am in urgent need of some guidance.  I recently purchased a single named-user license for Intel's Fortran Compiler for Linux.  While the baseline purchase was for the newest 2016 version of...

View Article


Import statement failes. Compiler bug?

The following code fails (Update 1, 2016.0.1.51; both 32 bits and 64 bits.)  MODULE ti_mod   USE ISO_C_BINDING   IMPLICIT none   PRIVATE !   INTEGER,PUBLIC,PARAMETER :: GLintptr = C_INTPTR_T !   PUBLIC...

View Article

Changing the language of the output report

Greetings,apologies for the title of the topic, which may seem a bit cryptic, but I doubt I can find a better one - nor a worse either ;-)Let me explain the unusual situation I am facing. My PC runs...

View Article

Installed Composer 2016 Update 1, now VS 2015 Community won't lauch

I had VF 13.0 working fine in VS 2010.I installed VS 2015 Community with C++ custom install, used it ok.I bought and installed Composer 2016 Update 1, said it installed fine in both 2010 and 2015...

View Article


Multiple Output files

I've written a 3D finite difference diffusion code in Microsoft Visual studio and I need to output the concentrations are certain time step values. I need multiple output files that include the...

View Article


freelibrary fails to unload dll

I have a couple of fortran dll's (Intel® Parallel Studio XE 2016 Update 1 Composer Edition for Fortran Windows) that get loaded into a c++ program. After they're done I'd like to unload the dll's. One...

View Article

Illegal instruction when running programs compiled by mpifort

Hi all,Recently I compiled VASP using Intel Fortran Compilers, but the program does not seem to work properly on my cluster. I got errors like: running on 1 total cores distrk: each k-point on 1 cores,...

View Article

SIZE function on an ALLOCATABLE array

Hello,The following code prints out 10 as the size of the ALLOCATABLE array after the array is deallocated. Is this the correct behavior or a compiler bug? I am using the latest version of the Intel...

View Article

va_list Fortran implementation: Compiles fine but gives runtime errors

I'm trying to come up with the object to store scalars and arrays in one type. It will ultimately allow me to pass arbitrary number of some predefined objects into any function. The code is compiled...

View Article


Image may be NSFW.
Clik here to view.

mixed prgraming - force passing argument

Hi I am working on VS2010 mixed-programing and use the Intel Compiler / VisualStudio (Intel Parallel 2015) to compile my project in VS 2010.Console - c source:       #include <stdio.h> #include...

View Article

Aliasing problem when passing the private components of a base type to its child

From what I gather, it's best to avoid any kind of aliasing in Fortran. What would be a proper way of implementing the following?Say, I have two derived types: base_t and child_t, each one defined in...

View Article


Image may be NSFW.
Clik here to view.

Optimizer bug

I wrote a driver program to solve the SNLS (Separable Nonlinear Least Squares) problems at http://www.itl.nist.gov/div898/strd/nls/nls_main.shtml using the JPL math77 library (high quality, recently...

View Article

Q about integer multiply

Suppose we have:      integer(4) x,y      integer (8) z      z=x*yIn almost all cases, the result will be wrong, in fact, more than 99.9999 percent of thetime, since the compiler does not understand...

View Article


problems with StretchDIbit

I am converting a program from Fortran 10 to fortran 16 (evaluation version at the moment) in Windows 10.Most things have converted well but I am having problems with a bitmap routine (based on a...

View Article

ifort linker can't find my user libs

I've searched the forum for this issue but no luck.  This is my first time trying to link user libs into my source code on linux. I am NOT using -static or -fast when I compile.  libA.a and libB.a are...

View Article

dll files not found in Windows 10

My program requires some dll files, which I install withw_fcompxe_redist_ia32_2013_sp1.1.139.msmwith Advanced Installer.  The user has to run the msi file, and then the program works.  This runs on XP,...

View Article
Browsing all 3108 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>