msys2 / MINGW-packages

Package scripts for MinGW-w64 targets to build under MSYS2.
https://packages.msys2.org
BSD 3-Clause "New" or "Revised" License
2.31k stars 1.23k forks source link

calculix-ccx ucrt error (comma instead of dot) #22630

Open 3rav opened 6 days ago

3rav commented 6 days ago

Description / Steps to reproduce the issue

Run this input, and see input.frd

$ ccx -i input

input.inp:

***********************************************************************
*NODE, NSET=Nall
       1,5.000000000000e+01,5.000000000000e+01,0.000000000000e+00
       2,5.000000000000e+01,0.000000000000e+00,0.000000000000e+00
       3,5.000000000000e+01,0.000000000000e+00,5.000000000000e+01
       4,5.000000000000e+01,5.000000000000e+01,5.000000000000e+01
       5,0.000000000000e+00,5.000000000000e+01,0.000000000000e+00
       6,0.000000000000e+00,0.000000000000e+00,0.000000000000e+00
       7,0.000000000000e+00,0.000000000000e+00,5.000000000000e+01
       8,0.000000000000e+00,5.000000000000e+01,5.000000000000e+01
*ELEMENT, TYPE=C3D8, ELSET=Eall
     1,     1,     2,     3,     4,     5,     6,     7,     8
***********************************************************************
*NSET,NSET=Nfix 
1, 2, 5, 6, 
***********************************************************************
*NSET,NSET=Nload 
3, 4, 7, 8, 
***********************************************************************
*BOUNDARY
Nfix, 1,3,,
***********************************************************************
*MATERIAL, NAME=17-4PH_H1025
*ELASTIC
210.e+3, 0.3
*EXPANSION,TYPE=ISO,ZERO=20.
1.2e-5
*SOLID SECTION, ELSET=Eall, MATERIAL=17-4PH_H1025
***********************************************************************
*STEP,NLGEOM=NO
*STATIC,SOLVER=SPOOLES
1., 1., 1e-05, 1.
***********************************************************************
*BOUNDARY
Nload, 3,3,-.8,
***********************************************************************
*NODE FILE
U, NT
*NODE PRINT, NSET=Nfix, TOTALS=ONLY
U
***********************************************************************
*EL FILE
S, E, PEEQ
*END STEP

Expected behavior

Good results (mingw64 and clang 64) from ccx:

    1C
    1UUSER                                                              
    1UDATE              23.november.2024                                
    1UTIME              15:53:33                                        
    1UHOST                                                              
    1UPGM               CalculiX                                        
    1UVERSION           Version 2.22                             
    1UCOMPILETIME       Mon Aug  5 19:15:25 CEST 2024                    
    1UDIR                                                               
    1UDBN                                                               
    1UMAT    117-4PH_H1025                                              
    2C                         29791                                     1
 -1         1 5.00000E+01 5.00000E+01 0.00000E+00
 -1         2 5.00000E+01 4.83333E+01 0.00000E+00
 -1         3 5.00000E+01 4.83333E+01 1.66667E+00
 -1         4 5.00000E+01 5.00000E+01 1.66667E+00

mingw64

Actual behavior

Results (ucrt64) from ccx:

    1C
    1UUSER                                                              
    1UDATE              23.november.2024                                
    1UTIME              15:59:24                                        
    1UHOST                                                              
    1UPGM               CalculiX                                        
    1UVERSION           Version 2.22                             
    1UCOMPILETIME       Mon Aug  5 19:15:25 CEST 2024                    
    1UDIR                                                               
    1UDBN                                                               
    1UMAT    117-4PH_H1025                                              
    2C                         29791                                     1
 -1         1 5,00000E+01 5,00000E+01 0,00000E+00
 -1         2 5,00000E+01 4,83333E+01 0,00000E+00
 -1         3 5,00000E+01 4,83333E+01 1,66667E+00
 -1         4 5,00000E+01 5,00000E+01 1,66667E+00
 -1         5 4,83333E+01 5,00000E+01 0,00000E+00

ucrt64

Verification

Windows Version

MINGW64_NT-10.0-26100

MINGW environments affected

Are you willing to submit a PR?

no