|
|
|
@ -780,10 +780,10 @@ void nmCalculationAutoFitLM::setTargetWellName(const QString& wellName)
|
|
|
|
|
|
|
|
|
|
|
|
void nmCalculationAutoFitLM::initializeTraceFile()
|
|
|
|
void nmCalculationAutoFitLM::initializeTraceFile()
|
|
|
|
{
|
|
|
|
{
|
|
|
|
// LM 轨迹独立保存在应用目录,不依赖机器学习目录或外部评分进程。
|
|
|
|
// LM 轨迹独立保存在系统临时目录,避免在应用目录堆积诊断文件。
|
|
|
|
closeTraceFile();
|
|
|
|
closeTraceFile();
|
|
|
|
m_traceRunId = QDateTime::currentDateTime().toString("yyyyMMdd_hhmmss_zzz");
|
|
|
|
m_traceRunId = QDateTime::currentDateTime().toString("yyyyMMdd_hhmmss_zzz");
|
|
|
|
QDir traceDir(QDir(QApplication::applicationDirPath()).absoluteFilePath("autofit_lm_trace"));
|
|
|
|
QDir traceDir(QDir(QDir::tempPath()).absoluteFilePath("autofit_lm_trace"));
|
|
|
|
|
|
|
|
|
|
|
|
if(!traceDir.exists() && !QDir().mkpath(traceDir.absolutePath())) {
|
|
|
|
if(!traceDir.exists() && !QDir().mkpath(traceDir.absolutePath())) {
|
|
|
|
DEBUG_OUT(QString("Failed to create LM trace directory: %1").arg(traceDir.absolutePath()));
|
|
|
|
DEBUG_OUT(QString("Failed to create LM trace directory: %1").arg(traceDir.absolutePath()));
|
|
|
|
|