Ccx 2.23: 12 further issues, one per reply below (all still present on master 537aa81)

7. *BOUNDARY, OP=NEW stops with “*ERROR reading *BOUNDARY” in any model with a *KINEMATIC coupling and a *TRANSFORM, even an identity one on another node

Summary

Section 7.80 (*KINEMATIC) of the 2.23 manual: “The degrees of freedom in the reference node (1 up to 3 for translations, 4 up to 6 for rotations; they apply to the global system unless a *TRANSFORM card was defined for the reference node) can be constrained by a *BOUNDARY card.” Section 7.4 (*BOUNDARY) offers OP=NEW to remove previous BCs.

As soon as the model also contains a *TRANSFORM, wherever it is, the first *BOUNDARY, OP=NEW (in step 1 or later) stops ccx while it reads the input:

 *ERROR reading *BOUNDARY
 *ERROR in calinput: at least one fatal
        error message while reading the
        input deck: CalculiX stops.

The message names no node, set or line, and nothing in the card is wrong.

Version

ccx 2.23 (macOS arm64) and current master (537aa81, 2 Nov 2026, built from source): the same stop.

Already reported or fixed?

Not reported: I found no matching GitHub issue (open or closed) or pull request in Dhondtguido/CalculiX (searched 5 Nov 2026). Not fixed: couplings.f lines 369-381 (2.23: 346-357) and boundarys.f lines 136-158 are the same on master. A build with CalculiX.c: decascade again after a step that left the MPCs undecascaded by sandervdbroek · Pull Request #252 · Dhondtguido/CalculiX · GitHub stops the same way.

Related, different: *TRANSFORM is ignored for rotations at shell knots and *KINEMATIC reference nodes; *EQUATION terms on DOF 5/6 of a transformed node are misread · Issue #312 · Dhondtguido/CalculiX · GitHub (forum *TRANSFORM is ignored for rotations at shell knots and *KINEMATIC reference nodes; *EQUATION terms on DOF 5/6 of a transformed node are misread), point 2, where a *TRANSFORM on a *KINEMATIC reference node is ignored for rotations (bounadd.f / forcadd.f reset itr). Two *KINEMATIC couplings on one REF NODE: the surfaces turn independently, and a moment on the reference node reaches only one, chosen by card order (exit 0) · Issue #281 · Dhondtguido/CalculiX · GitHub and *KINEMATIC coupling of one DOF without ORIENTATION: the unused reference rotation stops SPOOLES with exit 255 and no message; an identity ORIENTATION solves · Issue #290 · Dhondtguido/CalculiX · GitHub are other *KINEMATIC reports.

Minimal input

kinematic_transform_opnew.inp: one C3D8. Its top face is kinematically coupled (DOFs 1-3) to node 10, and node 1 of the held base has an identity *TRANSFORM. Step 2 repeats the base with OP=NEW.

** One C3D8, base held; top face coupled to node 10 (*KINEMATIC, DOFs 1-3).
** An identity *TRANSFORM on base node 1. Step 2 repeats the base with OP=NEW.
*NODE
1, 0, 0, 0
2, 1, 0, 0
3, 1, 1, 0
4, 0, 1, 0
5, 0, 0, 1
6, 1, 0, 1
7, 1, 1, 1
8, 0, 1, 1
10, 0.5, 0.5, 1
*ELEMENT, TYPE=C3D8, ELSET=E
1, 1, 2, 3, 4, 5, 6, 7, 8
*NSET, NSET=BASE
1, 2, 3, 4
*NSET, NSET=N1
1
*NSET, NSET=TOPN
5, 6, 7, 8, 10
*MATERIAL, NAME=M
*ELASTIC
1000., 0.3
*SOLID SECTION, ELSET=E, MATERIAL=M
*SURFACE, NAME=TOP
1, S2
*COUPLING, REF NODE=10, SURFACE=TOP, CONSTRAINT NAME=C
*KINEMATIC
1, 3
*TRANSFORM, NSET=N1
1, 0, 0, 0, 1, 0
*BOUNDARY
BASE, 1, 3
*STEP
*STATIC
*CLOAD
10, 1, 10.
*NODE PRINT, NSET=TOPN
U
*END STEP
*STEP
*STATIC
*BOUNDARY, OP=NEW
BASE, 1, 3
*NODE PRINT, NSET=TOPN
U
*END STEP

How to run

ccx kinematic_transform_opnew; then the same without the two *TRANSFORM lines.

Expected

The identity transform changes nothing, so both decks should run and print the same numbers.

Actual

  • With the *TRANSFORM: step 1 is solved, then reading step 2 stops with the message above (exit 201).
  • Without it: exit 0, and the reference node is at 10 4.333333E-02 1.601090E-18 8.234175E-19 after both steps.

It stops the same way (exit 201 on 2.23 and master) in each of these cases:

  • the *TRANSFORM (oblique 1, 1, 0, -1, 1, 0) is on the reference node 10, the case section 7.80 describes;
  • it is on a coupled node (7);
  • it is on a node that no element, BC or load uses;
  • *BOUNDARY, OP=NEW is in step 1 instead of step 2.

Without OP=NEW every variant runs.

Where it goes wrong

Line numbers are from master (537aa81).

couplings.f ties DOFs 4-6 of the reference node to the translations of a new rotation node with three ‘ROTTRACOUPLING’ MPCs (lines 356-390). Each MPC is entered in ikmpc under DOF k+3, but its first term is written as DOF k+4:

          idof=8*(irefnode-1)+k+3          ! line 370
          ...
          nodempc(2,mpcfree)=k+4           ! line 380

bounadd.f:64-68 and forcadd.f:52-56 look the MPC up under DOF 4-6, as registered, so this mismatch normally shows nowhere. On OP=NEW, if ntrans.gt.0, boundarys.f compacts the MPC list and finds each MPC again from its first term (lines 138-158):

                idof=8*(nodempc(1,index1)-1)+nodempc(2,index1)
                call nident(ikmpc,idof,nmpc,id)
                if(id.eq.0) then
                  write(*,*) '*ERROR reading *BOUNDARY'

For k = 1 and 2 this finds the next MPC’s entry (DOF 5, 6), so ilmpc would be wrong. For k = 3 there is no entry for DOF 7, and the run stops. Models without *TRANSFORM skip this block, which is why they run.

Possible fix

Write the first term as the DOF it is registered under, nodempc(2,mpcfree)=k+3 at couplings.f:380 (the comment above it says “the internal dofs for rotation are 4, 5 and 6”). In a test build of master with this change:

  • the deck above and all the variants run, and each prints what the same deck without OP=NEW prints on 2.23 (for the deck above: the numbers of the deck without *TRANSFORM);
  • the six decks of test/ with *KINEMATIC (coupling1, coupling1_set, coupling2, coupling3, cyl, hinge) give byte-identical .dat files.