Welcome to the forums. Please post in English or French.

You are not logged in.

#1 2019-07-11 17:20:15

chenghui62000
Member
From: Norway
Registered: 2018-06-19
Posts: 83

How to switch off the log file writing on disk

Dear all,

I have a high leave question (at least for me) for the Code_Aster files management system.
First, please see a snapshot of the folder on my computer. (It is a temp folder for my specifical simulation)
FluxBB bbcode test

There is a very large file in this folder: fort.6 which I think is a temporary message file (.mess file).
And this file becomes larger with the simulation going.
The question is that: since I did not add the following line in the to the .export file to save the message file(see the attached file). Why this file still comes out on my computer? Can I enforce the fort.6 file not writing on my disk?
The 'tempt message file' eats a lot of space on my limited disk. And the situation becomes even worse when I run several simulations on the cluster simultaneously because we only have 4Gb individually. 

mess /home/hui/Documents/AllCodeRepository/coderepository/CodeAsterModule/inputfilescreator/mess.log R  6

In addition, I didn't find any documentation to explain the .export file, could you please give some learning links?

Best regards,
Hui Cheng

Last edited by chenghui62000 (2019-07-11 17:28:25)


Attachments:
testFh7.export, Size: 1.29 KiB, Downloads: 29

Offline

#2 2019-07-14 13:25:11

chenghui62000
Member
From: Norway
Registered: 2018-06-19
Posts: 83

Re: How to switch off the log file writing on disk

Dear all,
I have found that I can delete the fort.6 file in manually and it won't come out.
Because my calculation uses a python loop to assign the forces on a large number of nodes. The log file could be extremely huge.  When I run several cases simultaneously the disk will be eaten up.

By the way, removing the fort.6 file manually can be a (possible) solution to my previous question:

https://www.code-aster.org/forum2/viewtopic.php?id=24208

Offline

#3 2019-07-14 15:19:35

jeanpierreaubry
Guru
From: nantes (france)
Registered: 2009-03-12
Posts: 3,616

Re: How to switch off the log file writing on disk

hello

i solved likewise problem in id=23083
this implies setting the AFFE_CHAR_MECA in a separate file with INCLUDE in the main.comm file

jean pierre aubry

Offline

#4 2019-07-14 22:18:42

chenghui62000
Member
From: Norway
Registered: 2018-06-19
Posts: 83

Re: How to switch off the log file writing on disk

Hi Jean Pierre,

Thank you for your reply. It is very exciting for me. Could you please give more hints for that? For example, the id=23083 means? and how to use INCLUDE  in the main comm file?

Thank you very much!
Hui Cheng

Offline

#5 2019-07-15 08:05:11

jeanpierreaubry
Guru
From: nantes (france)
Registered: 2009-03-12
Posts: 3,616

Re: How to switch off the log file writing on disk

chenghui62000 wrote:

the id=23083 means?

this is the id of the post

chenghui62000 wrote:

and how to use INCLUDE  in the main comm file?

t

there is an example in chapter 18 in my book

Offline

#6 2019-07-15 10:00:38

chenghui62000
Member
From: Norway
Registered: 2018-06-19
Posts: 83

Re: How to switch off the log file writing on disk

Hi Jean Pierre,
I could not find the id=23083 post on this forum. Could you please share the link here?
Thank you very much for the knowledge sharing in your book chapter 17-19. It is very useful.
I will try this INCLUDE method for my cases.

Best regards,
Hui Cheng

Offline

#7 2019-07-15 14:33:23

jeanpierreaubry
Guru
From: nantes (france)
Registered: 2009-03-12
Posts: 3,616

Re: How to switch off the log file writing on disk

/forum2/viewtopic.php?id=23083
id=23083 is there another way to write it???????

Offline

#8 2019-07-16 08:52:23

chenghui62000
Member
From: Norway
Registered: 2018-06-19
Posts: 83

Re: How to switch off the log file writing on disk

Great! I should find it earlier.

Offline

#9 2019-07-31 21:20:11

chenghui62000
Member
From: Norway
Registered: 2018-06-19
Posts: 83

Re: How to switch off the log file writing on disk

This question has been solved, but I have found that the "INCLUDE" will be removed in version 15. What a pity.
By the way, do you know how to turn off the Alarm message? I found that it always reminds as following:

   !--------------------------------------------------------------------------------!
   ! <A> <SUPERVIS_25>                                                              !
   !                                                                                !
   ! L'usage de la commande INCLUDE n'est pas conseillé.                            !
   !                                                                                !
   ! Une étude utilisant la commande INCLUDE ne peut pas être éditée en mode        !
   ! graphique dans AsterStudy. Il est alors conseillé de remplacer INCLUDE par     !
   ! un "Stage" supplémentaire.                                                     !
   !                                                                                !
   ! De plus, cette commande ne sera plus disponible à partir de la version 15.     !
   ! S'il s'agit d'exécuter des commandes Python, il sera alors possible d'utiliser !
   ! l'instruction "import".                                                        !
   !                                                                                !
   !                                                                                !
   ! Ceci est une alarme. Si vous ne comprenez pas le sens de cette                 !
   ! alarme, vous pouvez obtenir des résultats inattendus !                         !
   !--------------------------------------------------------------------------------!
   

Thank you so much
Hui Cheng

Last edited by chenghui62000 (2019-07-31 21:20:55)

Offline

#10 2019-07-31 22:45:29

Anirudh
Member
Registered: 2017-09-11
Posts: 248

Re: How to switch off the log file writing on disk

Hi,
To turn off alarms that you are definitely sure of, just include this statement in the DEBUT() command at the top of comm file:
DEBUT(IGNORE_ALARME=("SUPERVIS_25","DISCRETE_26" ...etc..) )


Anirudh

Offline

#11 2019-08-01 10:44:43

jeanpierreaubry
Guru
From: nantes (france)
Registered: 2009-03-12
Posts: 3,616

Re: How to switch off the log file writing on disk

hello Anirudh

it should read IGNORE_ALARM and not IGNORE_ALARME
automatic translation stroke again!!

jean pierre aubry

Offline

#12 2019-08-01 17:37:02

chenghui62000
Member
From: Norway
Registered: 2018-06-19
Posts: 83

Re: How to switch off the log file writing on disk

Thank you very much.
It makes my program better.
Hui Cheng

Offline