# New Operator DEFI\_CONT

**URL:** <https://code-aster.org/forum/t/new-operator-defi-cont/12298>\
**Category:** Code\_Aster usage\
**Created:** [June 24, 2026, 10:41am UTC](https://code-aster.org/forum/t/new-operator-defi-cont/12298 "2026-06-24T10:41:52Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![IV\_CoAs](https://code-aster.org/forum/letter_avatar_proxy/v4/letter/i/278dde/32.png) [@IV\_CoAs](https://code-aster.org/forum/u/IV_CoAs)\
**Post date:** [June 24, 2026, 10:41am UTC](https://code-aster.org/forum/t/new-operator-defi-cont/12298/1 "2026-06-24T10:41:52Z")

</div>

Hello,

In new version are new interesting operators, “MECA\_NON\_LINE” and “DEFI\_CONT”.

I have compiled from Gitlab version 17.4.18 and it works, except it gives error “DEFI\_CONT” not found.

My question, is something other commands needed to activate “DEFI\_CONT”.

In source code I found it from /MacroCommands directory, but was missing from /Cata/Commands and /CodeCommands directories.

Messages from solver: "

KONTTI = DEFI\_CONT(MODELE=MALLI,

```
         ^^^^^^^^^

```

NameError: name ‘DEFI\_CONT’ is not defined

Traceback (most recent call last):

File “”, line 198, in \_run\_module\_as\_main

File “”, line 88, in \_run\_code

File “/opt/aster/install/20251026/gcc12-openblas-ompi4/mpi4py-3.1.6/lib/python3.11/site-packages/mpi4py/ **main**.py”, line 7, in

```
main()

```

File “/opt/aster/install/20251026/gcc12-openblas-ompi4/mpi4py-3.1.6/lib/python3.11/site-packages/mpi4py/run.py”, line 230, in main

```
run_command_line(args)

```

File “/opt/aster/install/20251026/gcc12-openblas-ompi4/mpi4py-3.1.6/lib/python3.11/site-packages/mpi4py/run.py”, line 47, in run\_command\_line

```
run_path(sys.argv[0], run_name=' __main__')

```

File “”, line 291, in run\_path

File “”, line 98, in \_run\_module\_code

File “”, line 88, in \_run\_code

File “Test\_2.comm.changed.py”, line 84, in

```
KONTTI = DEFI_CONT(MODELE=MALLI,

         ^^^^^^^^^

```

NameError: name ‘DEFI\_CONT’ is not defined. Did you mean: ‘DEFI\_CONTACT’?

"

I repeat, in V17 documentation is this DEFI\_CONT, but my compiled from GitLab I receive this error.

Best Regards

Ilkka

---

<div class="post-metadata">

**Author:** ![AsterOdactyle](https://code-aster.org/forum/letter_avatar_proxy/v4/letter/a/4da419/32.png) [@AsterOdactyle](https://code-aster.org/forum/u/AsterOdactyle)\
**Post date:** [June 25, 2026, 12:03pm UTC](https://code-aster.org/forum/t/new-operator-defi-cont/12298/2 "2026-06-25T12:03:49Z")

</div>

Sorry ! The command is not yet “official”. To use it:

from code\_aster.MacroCommands.defi\_cont import DEFI\_CONT

---

<div class="post-metadata">

**Author:** ![IV\_CoAs](https://code-aster.org/forum/letter_avatar_proxy/v4/letter/i/278dde/32.png) [@IV\_CoAs](https://code-aster.org/forum/u/IV_CoAs)\
**Post date:** [June 25, 2026, 12:44pm UTC](https://code-aster.org/forum/t/new-operator-defi-cont/12298/3 "2026-06-25T12:44:59Z")

</div>

Kiitos/Merci!

Ilkka

---

<div class="post-metadata">

**Author:** ![AsterOdactyle](https://code-aster.org/forum/letter_avatar_proxy/v4/letter/a/4da419/32.png) [@AsterOdactyle](https://code-aster.org/forum/u/AsterOdactyle)\
**Post date:** [June 25, 2026, 3:34pm UTC](https://code-aster.org/forum/t/new-operator-defi-cont/12298/4 "2026-06-25T15:34:27Z")

</div>

Finland ?

Nice !

---

<div class="post-metadata">

**Author:** ![v\_kumar](https://code-aster.org/forum/letter_avatar_proxy/v4/letter/v/e95f7d/32.png) [@v\_kumar](https://code-aster.org/forum/u/v_kumar)\
**Post date:** [July 17, 2026, 11:47am UTC](https://code-aster.org/forum/t/new-operator-defi-cont/12298/5 "2026-07-17T11:47:34Z")

</div>

Hello,

I try to use DEFI\_CONT and MECA\_NON\_LINE but always get this error:

` ║ \<JEVEUX\_62\> ║

║ ║

║ Erreur lors de l’allocation dynamique. Il n’a pas été possible d’allouer ║

║ une zone mémoire de longueur 3710 Mo, on dépasse la limite maximum ║

║ fixée à 4150 Mo et on occupe déjà 975 Mo. ║

║ La dernière opération de libération mémoire a permis de récupérer 202 Mo. ║

║ `

Setting MPI\_NBCPU to 1 or 2 or any value, I get the above error. ALso, even if I increase the memory the error persists. What should be done?

Regards

Anirudh

---

<div class="post-metadata">

**Author:** ![v\_kumar](https://code-aster.org/forum/letter_avatar_proxy/v4/letter/v/e95f7d/32.png) [@v\_kumar](https://code-aster.org/forum/u/v_kumar)\
**Post date:** [July 18, 2026, 3:50am UTC](https://code-aster.org/forum/t/new-operator-defi-cont/12298/6 "2026-07-18T03:50:13Z")

</div>

Hello,

In docker v18.1.0, I got the above error.

In singularity 18.0.19 compiled version, nothing happens. There is no response from terminal after reading .comm file.

EdIT

I could make it run but results are not saved if MECA\_NON\_LINE fails after a few converged steps., even though I used

try:

```
evolu_noli = MECA_NON_LINE(...)

```

except:

```
pass

```

I get following error:

`[1,1]: NameError: name ‘evolu\_noli’ is not defined

[1,5]: NameError: name ‘evolu\_noli’ is not defined

[1,1]:

[1,1]: Exception: Trying to close the database after an uncaught exception…

[1,1]:

[1,1]:

[1,1]: Publishing the result of the current command MECA\_NON\_LINE…

[1,1]:

[1,5]:

[1,5]: Exception: Trying to close the database after an uncaught exception…

[1,5]:

[1,5]:

[1,5]: Publishing the result of the current command MECA\_NON\_LINE…

[1,5]:

[1,2]: Objects not saved on processor #2

[1,4]: Objects not saved on processor #4

[1,3]: Objects not saved on processor #3

[1,1]: Objects not saved on processor #1

[1,5]: Objects not saved on processor #5

[1,1]: No database in results, objects not saved on processor #1

[1,3]: No database in results, objects not saved on processor #3

[1,4]: No database in results, objects not saved on processor #4

[1,2]: No database in results, objects not saved on processor #2  
`

Even bases are not saved.

Regards

Anirudh

---

<div class="post-metadata">

**Author:** ![IV\_CoAs](https://code-aster.org/forum/letter_avatar_proxy/v4/letter/i/278dde/32.png) [@IV\_CoAs](https://code-aster.org/forum/u/IV_CoAs)\
**Post date:** [August 2, 2026, 1:07pm UTC](https://code-aster.org/forum/t/new-operator-defi-cont/12298/7 "2026-08-02T13:07:13Z")

</div>

Hello,

ALGO\_CONT=‘PENALISATION’ works, only porblem is, that I don’t know how to check penetration etc contact results.

I tried to use ALGO\_CONT=‘NITSCHE’, but it fails at least in myself compiled version 17.5.2. Below error message:

Instant de calcul: 1.000000000000e-01

[1,4]:

[1,4]:-------------------------------------------------------------------------------------------------------

[1,4]😑 NEWTON | RESIDU | RESIDU | RESIDU | RESIDU | OPTION |

[1,4]😑 | RELATIF | ABSOLU | REFERENCE | GEOMETRIQUE | ASSEMBLAGE |

[1,4]😑 | RESI\_GLOB\_RELA | RESI\_GLOB\_MAXI | RESI\_REFE\_RELA | RESI\_GEOM | |

[1,4]:-------------------------------------------------------------------------------------------------------

[1,5]:DEBUG: ContactPairing.cxx #356: DEBUG: ContactPairing.cxx #356: Assertion failed: cellIndx != -1

[1,5]:DEBUG: ContactPairing.cxx #356: ABORT - exit code 17

[1,5]:Fatal Python error: Aborted

[1,5]:

[1,5]:Current thread 0x0000722e6504f740 (most recent call first):

[1,5]: File “/opt/aster/install/PAR\_17\_5\_2/lib64/aster/code\_aster/Solvers/Main/contact\_manager.py”, line 63 in pairing

[1,5]: File “/opt/aster/install/PAR\_17\_5\_2/lib64/aster/code\_aster/Utilities/statistics\_manager.py”, line 54 in wrapper

[1,5]: File “/opt/aster/install/PAR\_17\_5\_2/lib64/aster/code\_aster/Solvers/IterationSolver/newton\_solver.py”, line 166 in solve\_iteration

[1,5]: File “/opt/aster/install/PAR\_17\_5\_2/lib64/aster/code\_aster/Utilities/statistics\_manager.py”, line 54 in wrapper

[1,5]: File “/opt/aster/install/PAR\_17\_5\_2/lib64/aster/code\_aster/Solvers/IterationSolver/newton\_solver.py”, line 122 in solve

[1,5]: File “/opt/aster/install/PAR\_17\_5\_2/lib64/aster/code\_aster/Utilities/statistics\_manager.py”, line 54 in wrapper

[1,5]: File “/opt/aster/install/PAR\_17\_5\_2/lib64/aster/code\_aster/Solvers/StepSolvers/meca\_stat\_step\_solver.py”, line 55 in solve

[1,5]: File “/opt/aster/install/PAR\_17\_5\_2/lib64/aster/code\_aster/Utilities/statistics\_manager.py[1,5]:”, line 54 in wrapper

[1,5]: File “/opt/aster/install/PAR\_17\_5\_2/lib64/aster/code\_aster/Solvers/Main/non\_linear\_operator.py”, line 425 in run\_[1,5]:

[1,5]: File “/opt/aster/install/PAR\_17\_5\_2/lib64/aster/code\_aster/Utilities/statistics\_manager.py”, line 54 in wrapper

[1,5]: File “/opt/aster/install/PAR\_17\_5\_2/lib64/aster/code\_aster/Solvers/Main/non\_linear\_operator.py”, line 388 in run

[1,5]: File “/opt/aster/install/PAR\_17\_5\_2/lib64/aster/code\_aster/MacroCommands/meca\_non\_line\_ops.py”, line 129 in meca\_non\_line\_ops

[1,5]: File “/opt/aster/install/PAR\_17\_5\_2/lib64/aster/code\_aster/Supervis/ExecuteCommand.py”, line 742 in exec\_

[1,5]: File “/opt/aster/install/PAR\_17\_5\_2/lib64/aster/code\_aster/Supervis/ExecuteCommand.py”, line 226 in run\_

[1,5]: File “/opt/aster/install/PAR\_17\_5\_2/lib64/aster/code\_aster/Supervis/ExecuteCommand.py”, line 183 in run

I hope this helps developers.

Best Regards

Ilkka

---

<div class="post-metadata">

**Author:** ![v\_kumar](https://code-aster.org/forum/letter_avatar_proxy/v4/letter/v/e95f7d/32.png) [@v\_kumar](https://code-aster.org/forum/u/v_kumar)\
**Post date:** [August 4, 2026, 10:49am UTC](https://code-aster.org/forum/t/new-operator-defi-cont/12298/8 "2026-08-04T10:49:56Z")

</div>

Yea I believe its not tested enough to be operational yet.
