File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11namespace eval ::Dam::write {
22 namespace path ::Dam
33 Kratos::AddNamespace [namespace current]
4-
4+
55 variable ConditionsDictGroupIterators
66 variable NodalConditionsGroup
77 variable TableDict
@@ -246,7 +246,7 @@ proc ::Dam::write::writeTables_dev { } {
246246proc ::Dam::write::GetPrinTables {} {
247247
248248 set root [customlib::GetBaseRoot]
249- FileSelector::CopyFilesIntoModel [file join [GiD_Info project ModelName] " .gid" ]
249+ if { $Kratos::kratos_private(UseFiles) eq 1} { FileSelector::CopyFilesIntoModel [file join [GiD_Info project ModelName] " .gid" ]}
250250 set listaTablas [list ]
251251 set listaFiles [list ]
252252 set num 0
@@ -282,7 +282,7 @@ proc ::Dam::write::GetPrinTables {} {
282282proc ::Dam::write::GetPrinTables_dev { } {
283283
284284 set root [customlib::GetBaseRoot]
285- FileSelector::CopyFilesIntoModel [file join [GiD_Info project ModelName] " .gid" ]
285+ if { $Kratos::kratos_private(UseFiles) eq 1}{ FileSelector::CopyFilesIntoModel [file join [GiD_Info project ModelName] " .gid" ]}
286286 set listaTablas2 [list ]
287287 set listaFiles2 [list ]
288288 set num [llength [GetPrinTables]]
Original file line number Diff line number Diff line change @@ -167,6 +167,8 @@ proc Kratos::InitGlobalVariables {dir} {
167167 set kratos_private(UseWizard) 0
168168 # Project New 1/0
169169 set kratos_private(ProjectIsNew) 1
170+ # Is using files modules
171+ set kratos_private(UseFiles) 0
170172 # Variables from the problemtype definition (kratos.xml)
171173 array set kratos_private [ReadProblemtypeXml [file join $kratos_private(Path) kratos.xml] Infoproblemtype {Name Version CheckMinimumGiDVersion}]
172174
@@ -505,7 +507,7 @@ proc Kratos::WriteCalculationFilesEvent { {filename ""} } {
505507 }
506508 }
507509 # The calculation process may need the files of the file selector entries inside the model folder
508- FileSelector::CopyFilesIntoModel [file dirname $filename ]
510+ if { $Kratos::kratos_private(UseFiles) eq 1} { FileSelector::CopyFilesIntoModel [file dirname $filename ]}
509511
510512 # Start the write configuration clean
511513 write::Init
@@ -540,7 +542,7 @@ proc Kratos::Event_SaveModelSPD { filespd } {
540542 Kratos::RegisterEnvironment
541543
542544 # User files (in file selectors) copied into the model (if required)
543- FileSelector::CopyFilesIntoModel [file dirname $filespd ]
545+ if { $Kratos::kratos_private(UseFiles) eq 1} { FileSelector::CopyFilesIntoModel [file dirname $filespd ]}
544546
545547 # Let the current app implement it's Save event
546548 apps::ExecuteOnCurrentApp AfterSaveModel $filespd
You can’t perform that action at this time.
0 commit comments