Opened 14 years ago

Last modified 9 years ago

#1562 accepted defect

F77 functions sometimes overwrite input arguments

Reported by: Per Östlund Owned by: Per Östlund
Priority: high Milestone: Future
Component: Version:
Keywords: Cc: Per Östlund

Description

The model Modelica.Media.Incompressible.Examples.Glycol47 gets erroneous values for the poly_rho and poly_Cp constants, because the input array B to the Lapack function dgelsx is overwritten with the unassigned output argument x. This only happens when code generation is used to generate dgelsx.

Change History (3)

comment:1 by Martin Sjölund, 13 years ago

The problem is:

  _x_ext = tmp7;
  convert_alloc_real_array_to_f77(&out.targ1, &_x_ext);

Which fills x_ext with an empty (unassigned) array

comment:2 by Martin Sjölund, 13 years ago

Also not working is dorgqr, due to Q not existing (in C code)

comment:3 by Dietmar Winkler, 9 years ago

Cc: perost, perost → perost
Milestone: Future
Note: See TracTickets for help on using tickets.