Skip to content

Conversation

hpohekar
Copy link
Collaborator

@hpohekar hpohekar commented Nov 15, 2023

  • Apply Factory Pattern in launch_fluent()
  • Test launch_fluent() in local session
  • Test launch_fluent() in Ansys Lab
  • Add docstrings
  • Construct launcher object of given type
  • Make launcher interface callable
  • Launch Standalone independently
  • Add tests for StandaloneLauncher
  • Launch PIMLauncher independently
  • Add tests for PIMLauncher
  • Launch DockerLauncher independently
  • Add tests for DockerLauncher
  • Move each Launcher to separate files.
  • Resolve import issues
  • Create a separate module for shared launcher utilities
  • Test local sessions again after restructuring
  • Test pim sessions again after restructuring
  • Test connect_to_fluent - found 1 bug - resolved in current PR remote_file_handler is None if we use connect_to_fluent #2272

@hpohekar hpohekar linked an issue Nov 15, 2023 that may be closed by this pull request
@hpohekar hpohekar marked this pull request as draft November 15, 2023 14:40
@hpohekar hpohekar marked this pull request as ready for review November 20, 2023 14:47
@hpohekar hpohekar marked this pull request as ready for review November 23, 2023 07:45
@hpohekar hpohekar linked an issue Nov 23, 2023 that may be closed by this pull request
@hpohekar
Copy link
Collaborator Author

@seanpearsonuk This PR is ready.

hpohekar and others added 2 commits November 29, 2023 18:21
Co-authored-by: Sean Pearson <93727996+seanpearsonuk@users.noreply.github.com>
@hpohekar hpohekar enabled auto-merge (squash) November 29, 2023 15:02
@hpohekar hpohekar merged commit 7922254 into main Nov 29, 2023
@hpohekar hpohekar deleted the feat/factory_pattern_launch_fluent branch November 29, 2023 17:22
if meshing_mode:
session.tui.file.read_case(case_file_name)
elif lightweight_mode:
session.read_case_lightweight(case_file_name)
Copy link
Collaborator

@seanpearsonuk seanpearsonuk Dec 12, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@ansjsia @raph-luc to confirm, this is the old version

if self.meshing_mode:
session.tui.file.read_case(self.case_file_name)
else:
session.read_case(self.case_file_name, self.lightweight_mode)
Copy link
Collaborator

@seanpearsonuk seanpearsonuk Dec 12, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@ansjsia @raph-luc the old version was changed here to this newer version.
I.e. from

elif lightweight_mode:
                    session.read_case_lightweight(case_file_name)
else:
                    session.read_case(case_file_name)

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Got it, thanks for helping dig this out @seanpearsonuk

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

remote_file_handler is None if we use connect_to_fluent Apply the factory pattern in launch code
5 participants